@@ -69,8 +69,8 @@ discard block |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | if (null === $metadata->getter) { |
72 | - if (!isset($this->readAccessors[$metadata->class])) { |
|
73 | - $this->readAccessors[$metadata->class] = function ($o, $name) use ($metadata) { |
|
72 | + if ( ! isset($this->readAccessors[$metadata->class])) { |
|
73 | + $this->readAccessors[$metadata->class] = function($o, $name) use ($metadata) { |
|
74 | 74 | $className = $metadata->class; |
75 | 75 | $property = $this->propertyReflectionCache[$className][$name] ?? null; |
76 | 76 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | return $property->getValue($o); |
84 | 84 | } |
85 | 85 | |
86 | - return \Closure::bind(function ($name) { |
|
86 | + return \Closure::bind(function($name) { |
|
87 | 87 | return $this->$name; |
88 | 88 | }, $o, $className)($name); |
89 | 89 | }; |
@@ -105,9 +105,9 @@ discard block |
||
105 | 105 | } |
106 | 106 | |
107 | 107 | if (null === $metadata->setter) { |
108 | - if (!isset($this->writeAccessors[$metadata->class])) { |
|
108 | + if ( ! isset($this->writeAccessors[$metadata->class])) { |
|
109 | 109 | if (true === $metadata->forceReflectionAccess) { |
110 | - $this->writeAccessors[$metadata->class] = function ($o, $name, $value) use ($metadata): void { |
|
110 | + $this->writeAccessors[$metadata->class] = function($o, $name, $value) use ($metadata): void { |
|
111 | 111 | $ref = $this->propertyReflectionCache[$metadata->class][$name] ?? null; |
112 | 112 | if (null === $ref) { |
113 | 113 | $ref = new \ReflectionProperty($metadata->class, $name); |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | $ref->setValue($o, $value); |
119 | 119 | }; |
120 | 120 | } else { |
121 | - $this->writeAccessors[$metadata->class] = \Closure::bind(static function ($o, $name, $value): void { |
|
121 | + $this->writeAccessors[$metadata->class] = \Closure::bind(static function($o, $name, $value): void { |
|
122 | 122 | $o->$name = $value; |
123 | 123 | }, null, $metadata->class); |
124 | 124 | } |