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