@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | return 'O:' . strlen($className) . ':"' . $className . '":0:{}'; |
68 | 68 | } |
69 | 69 | |
70 | - private function getClassProperty(\ReflectionClass $reflectionClass, string $propertyName):?\ReflectionProperty |
|
70 | + private function getClassProperty(\ReflectionClass $reflectionClass, string $propertyName): ? \ReflectionProperty |
|
71 | 71 | { |
72 | 72 | if (!$reflectionClass->hasProperty($propertyName)) { |
73 | 73 | |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | return $this->hydrateProperty($reflectionClass, $propertyName, $document); |
171 | 171 | } |
172 | 172 | |
173 | - private function hydrateProperty(\ReflectionClass $reflectionClass, string $propertyName, $document, ?string $actualClassName = null) |
|
173 | + private function hydrateProperty(\ReflectionClass $reflectionClass, string $propertyName, $document, ? string $actualClassName = null) |
|
174 | 174 | { |
175 | 175 | if (null === $document) { |
176 | 176 | return null; |
@@ -11,7 +11,7 @@ |
||
11 | 11 | |
12 | 12 | abstract class LocalAdapterLocator implements ObjectUnserializer |
13 | 13 | { |
14 | - protected function locateUnserializerForClass(string $className, $serializedValue):?ObjectUnserializer |
|
14 | + protected function locateUnserializerForClass(string $className, $serializedValue): ? ObjectUnserializer |
|
15 | 15 | { |
16 | 16 | $hydratorName = $this->getNamespace() . '\\' . $className . '\\From' . ucfirst($this->getNameFromSerializedValue($serializedValue)); |
17 | 17 |
@@ -16,5 +16,5 @@ |
||
16 | 16 | * @return mixed |
17 | 17 | * @throws ValueNotUnserializable |
18 | 18 | */ |
19 | - public function tryToUnserializeValue(string $objectClassName, $serializedValue); |
|
19 | + public function tryToUnserializeValue(string $objectClassName, $serializedValue); |
|
20 | 20 | } |
21 | 21 | \ No newline at end of file |
@@ -25,7 +25,7 @@ |
||
25 | 25 | public function convert($anything) |
26 | 26 | { |
27 | 27 | if (is_array($anything)) { |
28 | - return array_map(function ($item) { |
|
28 | + return array_map(function($item) { |
|
29 | 29 | return $this->convert($item); |
30 | 30 | }, $anything); |
31 | 31 | } |