Completed
Pull Request — master (#663)
by Antoine
03:39
created
Doctrine/Orm/Metadata/Property/DoctrineOrmPropertyNameCollectionFactory.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Doctrine/Orm/Metadata/Property/DoctrineOrmPropertyMetadataFactory.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -93,6 +93,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Serializer/AbstractItemNormalizer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.