Skip to content

Commit 31b5e5c

Browse files
committed
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
2 parents 9f5a6c6 + 864136a commit 31b5e5c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class PropertyNormalizer extends SerializerAwareNormalizer implements Normalizer
3838
private $camelizedAttributes = array();
3939

4040
/**
41-
* Set normalization callbacks
41+
* Set normalization callbacks.
4242
*
4343
* @param array $callbacks help normalize the result
4444
*
@@ -68,7 +68,7 @@ public function setIgnoredAttributes(array $ignoredAttributes)
6868
}
6969

7070
/**
71-
* Set attributes to be camelized on denormalize
71+
* Set attributes to be camelized on denormalize.
7272
*
7373
* @param array $camelizedAttributes
7474
*/
@@ -91,7 +91,7 @@ public function normalize($object, $format = null, array $context = array())
9191
}
9292

9393
// Override visibility
94-
if (! $property->isPublic()) {
94+
if (!$property->isPublic()) {
9595
$property->setAccessible(true);
9696
}
9797

@@ -155,7 +155,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
155155
$property = $reflectionClass->getProperty($propertyName);
156156

157157
// Override visibility
158-
if (! $property->isPublic()) {
158+
if (!$property->isPublic()) {
159159
$property->setAccessible(true);
160160
}
161161

@@ -213,7 +213,7 @@ private function supports($class)
213213

214214
// We look for at least one non-static property
215215
foreach ($class->getProperties() as $property) {
216-
if (! $property->isStatic()) {
216+
if (!$property->isStatic()) {
217217
return true;
218218
}
219219
}

0 commit comments

Comments
 (0)