@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | |
139 | 139 | switch ($type['name']) { |
140 | 140 | case 'NULL': |
141 | - if (!$this->shouldSerializeNull && !$this->isRootNullAllowed()) { |
|
141 | + if ( ! $this->shouldSerializeNull && ! $this->isRootNullAllowed()) { |
|
142 | 142 | throw new NotAcceptableException(); |
143 | 143 | } |
144 | 144 | |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | case 'resource': |
169 | 169 | $msg = 'Resources are not supported in serialized data.'; |
170 | 170 | if (null !== $path = $this->context->getPath()) { |
171 | - $msg .= ' Path: ' . $path; |
|
171 | + $msg .= ' Path: '.$path; |
|
172 | 172 | } |
173 | 173 | |
174 | 174 | throw new RuntimeException($msg); |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | throw new ExcludedClassException(); |
235 | 235 | } |
236 | 236 | |
237 | - if (!is_object($data)) { |
|
237 | + if ( ! is_object($data)) { |
|
238 | 238 | throw new InvalidArgumentException('Value at '.$this->context->getPath().' is expected to be an object of class '.type['name'].' but is of type '.gettype($data)); |
239 | 239 | } |
240 | 240 |