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