@@ -68,13 +68,13 @@ discard block |
||
68 | 68 | return $object->{$metadata->getter}(); |
69 | 69 | } |
70 | 70 | |
71 | - if (!isset($this->readAccessors[$metadata->class][$metadata->name])) { |
|
71 | + if ( ! isset($this->readAccessors[$metadata->class][$metadata->name])) { |
|
72 | 72 | if ($metadata->forceReflectionAccess) { |
73 | - $accessor = static function ($object, $name) use ($metadata) { |
|
73 | + $accessor = static function($object, $name) use ($metadata) { |
|
74 | 74 | return $metadata->reflection->getValue($object); |
75 | 75 | }; |
76 | 76 | } else { |
77 | - $accessor = \Closure::bind(static function ($object, $name) { |
|
77 | + $accessor = \Closure::bind(static function($object, $name) { |
|
78 | 78 | return $object->$name; |
79 | 79 | }, null, $metadata->class); |
80 | 80 | } |
@@ -100,13 +100,13 @@ discard block |
||
100 | 100 | return; |
101 | 101 | } |
102 | 102 | |
103 | - if (!isset($this->writeAccessors[$metadata->class][$metadata->name])) { |
|
103 | + if ( ! isset($this->writeAccessors[$metadata->class][$metadata->name])) { |
|
104 | 104 | if ($metadata->forceReflectionAccess) { |
105 | - $accessor = static function ($object, $name, $value) use ($metadata) { |
|
105 | + $accessor = static function($object, $name, $value) use ($metadata) { |
|
106 | 106 | $metadata->reflection->setValue($object, $value); |
107 | 107 | }; |
108 | 108 | } else { |
109 | - $accessor = \Closure::bind(static function ($object, $name, $value) { |
|
109 | + $accessor = \Closure::bind(static function($object, $name, $value) { |
|
110 | 110 | $object->$name = $value; |
111 | 111 | }, null, $metadata->class); |
112 | 112 | } |