@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | // Locate possible ObjectManager |
54 | 54 | $objectManager = $this->managerRegistry->getManagerForClass($metadata->name); |
55 | 55 | |
56 | - if (!$objectManager) { |
|
56 | + if ( ! $objectManager) { |
|
57 | 57 | // No ObjectManager found, proceed with normal deserialization |
58 | 58 | return $this->fallbackConstructor->construct($visitor, $metadata, $data, $type, $context); |
59 | 59 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | // Managed entity, check for proxy load |
70 | - if (!\is_array($data) && !(is_object($data) && 'SimpleXMLElement' === get_class($data))) { |
|
70 | + if ( ! \is_array($data) && ! (is_object($data) && 'SimpleXMLElement' === get_class($data))) { |
|
71 | 71 | // Single identifier, load proxy |
72 | 72 | return $objectManager->getReference($metadata->name, $data); |
73 | 73 | } |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $dataName = $name; |
84 | 84 | } |
85 | 85 | |
86 | - if (!array_key_exists($dataName, $data)) { |
|
86 | + if ( ! array_key_exists($dataName, $data)) { |
|
87 | 87 | return $this->fallbackConstructor->construct($visitor, $metadata, $data, $type, $context); |
88 | 88 | } |
89 | 89 | $identifierList[$name] = $data[$dataName]; |
@@ -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 | } |