@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | // Locate possible ObjectManager |
66 | 66 | $objectManager = $this->managerRegistry->getManagerForClass($metadata->name); |
67 | 67 | |
68 | - if (!$objectManager) { |
|
68 | + if ( ! $objectManager) { |
|
69 | 69 | // No ObjectManager found, proceed with normal deserialization |
70 | 70 | return $this->fallbackConstructor->construct($visitor, $metadata, $data, $type, $context); |
71 | 71 | } |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | } |
80 | 80 | |
81 | 81 | // Managed entity, check for proxy load |
82 | - if (!\is_array($data) && !(is_object($data) && 'SimpleXMLElement' === get_class($data))) { |
|
82 | + if ( ! \is_array($data) && ! (is_object($data) && 'SimpleXMLElement' === get_class($data))) { |
|
83 | 83 | // Single identifier, load proxy |
84 | 84 | return $objectManager->getReference($metadata->name, $data); |
85 | 85 | } |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | |
91 | 91 | foreach ($classMetadata->getIdentifierFieldNames() as $name) { |
92 | 92 | // Avoid calling objectManager->find if some identification properties are excluded |
93 | - if (!isset($metadata->propertyMetadata[$name])) { |
|
93 | + if ( ! isset($metadata->propertyMetadata[$name])) { |
|
94 | 94 | return $this->fallbackConstructor->construct($visitor, $metadata, $data, $type, $context); |
95 | 95 | } |
96 | 96 | $propertyMetadata = $metadata->propertyMetadata[$name]; |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | return $this->fallbackConstructor->construct($visitor, $metadata, $data, $type, $context); |
101 | 101 | } |
102 | 102 | |
103 | - if (!array_key_exists($propertyMetadata->serializedName, $data)) { |
|
103 | + if ( ! array_key_exists($propertyMetadata->serializedName, $data)) { |
|
104 | 104 | return $this->fallbackConstructor->construct($visitor, $metadata, $data, $type, $context); |
105 | 105 | } |
106 | 106 | $identifierList[$name] = $data[$propertyMetadata->serializedName]; |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | if ($this->context->hasAttribute('allows_root_null') && $this->context->getAttribute('allows_root_null') && 0 === $this->context->getVisitingSet()->count()) { |
137 | 137 | return null; |
138 | 138 | } |
139 | - if (!$this->shouldSerializeNull) { |
|
139 | + if ( ! $this->shouldSerializeNull) { |
|
140 | 140 | throw new NotAcceptableException(); |
141 | 141 | } |
142 | 142 | return $this->visitor->visitNull($data, $type); |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | case 'resource': |
166 | 166 | $msg = 'Resources are not supported in serialized data.'; |
167 | 167 | if (null !== $path = $this->context->getPath()) { |
168 | - $msg .= ' Path: ' . $path; |
|
168 | + $msg .= ' Path: '.$path; |
|
169 | 169 | } |
170 | 170 | |
171 | 171 | throw new RuntimeException($msg); |