Passed
Push — master ( 844eab...4575a5 )
by GRASSIOT
06:28
created
src/Hal/Serializer/ItemNormalizer.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -165,8 +165,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Metadata/Resource/Factory/CachedResourceMetadataFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Serializer/AbstractItemNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.