@@ -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 | } |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | $parametersMemory = []; |
| 204 | 204 | $pathOperation['parameters'] = []; |
| 205 | 205 | |
| 206 | - foreach ($subresourceOperation['identifiers'] as list($identifier, , $hasIdentifier)) { |
|
| 206 | + foreach ($subresourceOperation['identifiers'] as list($identifier,, $hasIdentifier)) { |
|
| 207 | 207 | if (true === $hasIdentifier) { |
| 208 | 208 | $parameter = [ |
| 209 | 209 | 'name' => $identifier, |
@@ -560,7 +560,7 @@ discard block |
||
| 560 | 560 | } |
| 561 | 561 | |
| 562 | 562 | if (!isset($definitions[$definitionKey])) { |
| 563 | - $definitions[$definitionKey] = []; // Initialize first to prevent infinite loop |
|
| 563 | + $definitions[$definitionKey] = []; // Initialize first to prevent infinite loop |
|
| 564 | 564 | $definitions[$definitionKey] = $this->getDefinitionSchema($v3, $publicClass ?? $resourceClass, $resourceMetadata, $definitions, $serializerContext); |
| 565 | 565 | } |
| 566 | 566 | |