@@ -67,7 +67,7 @@ |
||
| 67 | 67 | |
| 68 | 68 | try { |
| 69 | 69 | foreach ($this->decorated->create($childEntity) as $key => $childPropertyName) { |
| 70 | - $propertyNames[$childPropertyName] = $childPropertyName; |
|
| 70 | + $propertyNames[$childPropertyName] = $childPropertyName; |
|
| 71 | 71 | } |
| 72 | 72 | } catch (ResourceClassNotFoundException $resourceClassNotFoundException) { |
| 73 | 73 | // Ignore not found exceptions |
@@ -93,6 +93,9 @@ |
||
| 93 | 93 | return $propertyMetadata; |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | + /** |
|
| 97 | + * @param string $property |
|
| 98 | + */ |
|
| 96 | 99 | private function classHasProperty($resourceClass, $property) { |
| 97 | 100 | try { |
| 98 | 101 | $refl = new \ReflectionClass($resourceClass); |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | try { |
| 98 | 98 | $refl = new \ReflectionClass($resourceClass); |
| 99 | 99 | $refl->getProperty($property); |
| 100 | - } catch(\ReflectionException $e) { |
|
| 100 | + } catch (\ReflectionException $e) { |
|
| 101 | 101 | return false; |
| 102 | 102 | } |
| 103 | 103 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | $this->resourceClassResolver = $resourceClassResolver; |
| 49 | 49 | $this->propertyAccessor = $propertyAccessor ?: PropertyAccess::createPropertyAccessor(); |
| 50 | 50 | |
| 51 | - $this->setCircularReferenceHandler(function ($object) { |
|
| 51 | + $this->setCircularReferenceHandler(function($object) { |
|
| 52 | 52 | return $this->iriConverter->getIriFromItem($object); |
| 53 | 53 | }); |
| 54 | 54 | } |
@@ -307,7 +307,7 @@ discard block |
||
| 307 | 307 | |
| 308 | 308 | try { |
| 309 | 309 | $attributeValue = $this->propertyAccessor->getValue($object, $attribute); |
| 310 | - } catch(NoSuchPropertyException $e) { |
|
| 310 | + } catch (NoSuchPropertyException $e) { |
|
| 311 | 311 | if (null === $propertyMetadata->getInheritance()) { |
| 312 | 312 | throw $e; |
| 313 | 313 | } |