Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -68,7 +68,7 @@ public function setIgnoredAttributes(array $ignoredAttributes)
}

/**
* Set attributes to be camelized on denormalize
* Set attributes to be camelized on denormalize.
*
* @param array $camelizedAttributes
*/
Expand All @@ -91,7 +91,7 @@ public function normalize($object, $format = null, array $context = array())
}

// Override visibility
if (! $property->isPublic()) {
if (!$property->isPublic()) {
$property->setAccessible(true);
}

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

// Override visibility
if (! $property->isPublic()) {
if (!$property->isPublic()) {
$property->setAccessible(true);
}

Expand Down Expand Up @@ -213,7 +213,7 @@ private function supports($class)

// We look for at least one non-static property
foreach ($class->getProperties() as $property) {
if (! $property->isStatic()) {
if (!$property->isStatic()) {
return true;
}
}
Expand Down