Passed
Pull Request — master (#1375)
by Rene
03:24
created
src/Accessor/DefaultAccessorStrategy.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
             }
82 82
 
83 83
             if (PHP_VERSION_ID >= 70400 && !$ref->isInitialized($object)) {
84
-               return null;
84
+                return null;
85 85
             }
86 86
             return $ref->getValue($object);
87 87
         }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                 $this->propertyReflectionCache[$metadata->class][$metadata->name] = $ref;
81 81
             }
82 82
 
83
-            if (PHP_VERSION_ID >= 70400 && !$ref->isInitialized($object)) {
83
+            if (PHP_VERSION_ID >= 70400 && ! $ref->isInitialized($object)) {
84 84
                return null;
85 85
             }
86 86
             return $ref->getValue($object);
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
         $accessor = $this->readAccessors[$metadata->class] ?? null;
90 90
         if (null === $accessor) {
91
-            $accessor = \Closure::bind(static function ($o, $name) {
91
+            $accessor = \Closure::bind(static function($o, $name) {
92 92
                 return $o->$name;
93 93
             }, null, $metadata->class);
94 94
             $this->readAccessors[$metadata->class] = $accessor;
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 
128 128
         $accessor = $this->writeAccessors[$metadata->class] ?? null;
129 129
         if (null === $accessor) {
130
-            $accessor = \Closure::bind(static function ($o, $name, $value): void {
130
+            $accessor = \Closure::bind(static function($o, $name, $value): void {
131 131
                 $o->$name = $value;
132 132
             }, null, $metadata->class);
133 133
             $this->writeAccessors[$metadata->class] = $accessor;
Please login to merge, or discard this patch.