@@ -165,8 +165,7 @@ |
||
| 165 | 165 | $class = $this->getObjectClass($object); |
| 166 | 166 | |
| 167 | 167 | $attributesMetadata = \array_key_exists($class, $this->attributesMetadataCache) ? |
| 168 | - $this->attributesMetadataCache[$class] : |
|
| 169 | - $this->attributesMetadataCache[$class] = $this->classMetadataFactory ? $this->classMetadataFactory->getMetadataFor($object)->getAttributesMetadata() : null; |
|
| 168 | + $this->attributesMetadataCache[$class] : $this->attributesMetadataCache[$class] = $this->classMetadataFactory ? $this->classMetadataFactory->getMetadataFor($object)->getAttributesMetadata() : null; |
|
| 170 | 169 | |
| 171 | 170 | $key = '_'.$type; |
| 172 | 171 | foreach ($components[$type] as $relation) { |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | { |
| 40 | 40 | $cacheKey = self::CACHE_KEY_PREFIX.md5($resourceClass); |
| 41 | 41 | |
| 42 | - return $this->getCached($cacheKey, function () use ($resourceClass) { |
|
| 42 | + return $this->getCached($cacheKey, function() use ($resourceClass) { |
|
| 43 | 43 | return $this->decorated->create($resourceClass); |
| 44 | 44 | }); |
| 45 | 45 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | public function __construct(PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, PropertyMetadataFactoryInterface $propertyMetadataFactory, IriConverterInterface $iriConverter, ResourceClassResolverInterface $resourceClassResolver, PropertyAccessorInterface $propertyAccessor = null, NameConverterInterface $nameConverter = null, ClassMetadataFactoryInterface $classMetadataFactory = null, ItemDataProviderInterface $itemDataProvider = null, bool $allowPlainIdentifiers = false, array $defaultContext = []) |
| 59 | 59 | { |
| 60 | 60 | if (!isset($defaultContext['circular_reference_handler'])) { |
| 61 | - $defaultContext['circular_reference_handler'] = function ($object) { |
|
| 61 | + $defaultContext['circular_reference_handler'] = function($object) { |
|
| 62 | 62 | return $this->iriConverter->getIriFromItem($object); |
| 63 | 63 | }; |
| 64 | 64 | } |