minor #14758 [Serializer] [2.6] Code style (derrabus)

This PR was merged into the 2.6 branch.

Discussion
----------

[Serializer] [2.6] Code style

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | none
| License       | MIT
| Doc PR        | none

This PR fixes some minor code style issues fabbot discovered while I was working on PR #14756.

Commits
-------

864136a Code style
This commit is contained in:
Fabien Potencier 2015-05-27 20:30:26 +02:00
commit 31b5e5c5b1

View File

@ -38,7 +38,7 @@ class PropertyNormalizer extends SerializerAwareNormalizer implements Normalizer
private $camelizedAttributes = array();
/**
* Set normalization callbacks
* Set normalization callbacks.
*
* @param array $callbacks help normalize the result
*
@ -68,7 +68,7 @@ class PropertyNormalizer extends SerializerAwareNormalizer implements Normalizer
}
/**
* Set attributes to be camelized on denormalize
* Set attributes to be camelized on denormalize.
*
* @param array $camelizedAttributes
*/
@ -91,7 +91,7 @@ class PropertyNormalizer extends SerializerAwareNormalizer implements Normalizer
}
// Override visibility
if (! $property->isPublic()) {
if (!$property->isPublic()) {
$property->setAccessible(true);
}
@ -155,7 +155,7 @@ class PropertyNormalizer extends SerializerAwareNormalizer implements Normalizer
$property = $reflectionClass->getProperty($propertyName);
// Override visibility
if (! $property->isPublic()) {
if (!$property->isPublic()) {
$property->setAccessible(true);
}
@ -213,7 +213,7 @@ class PropertyNormalizer extends SerializerAwareNormalizer implements Normalizer
// We look for at least one non-static property
foreach ($class->getProperties() as $property) {
if (! $property->isStatic()) {
if (!$property->isStatic()) {
return true;
}
}