@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | */ |
96 | 96 | public function serialize($data, $format, SerializationContext $context = null) |
97 | 97 | { |
98 | - if ( ! $this->serializationVisitors->containsKey($format)) { |
|
98 | + if (!$this->serializationVisitors->containsKey($format)) { |
|
99 | 99 | throw new UnsupportedFormatException(sprintf('The format "%s" is not supported for serialization.', $format)); |
100 | 100 | } |
101 | 101 | |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | */ |
123 | 123 | public function deserialize($data, $type, $format, DeserializationContext $context = null) |
124 | 124 | { |
125 | - if ( ! $this->deserializationVisitors->containsKey($format)) { |
|
125 | + if (!$this->deserializationVisitors->containsKey($format)) { |
|
126 | 126 | throw new UnsupportedFormatException(sprintf('The format "%s" is not supported for deserialization.', $format)); |
127 | 127 | } |
128 | 128 | |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | ->map(function(JsonSerializationVisitor $visitor) use ($context, $data) { |
166 | 166 | $this->visit($visitor, $context, $data, 'json'); |
167 | 167 | $result = $this->convertArrayObjects($visitor->getRoot()); |
168 | - if ( ! is_array($result)) { |
|
168 | + if (!is_array($result)) { |
|
169 | 169 | throw new RuntimeException(sprintf( |
170 | 170 | 'The input data of type "%s" did not convert to an array, but got a result of type "%s".', |
171 | 171 | is_object($data) ? get_class($data) : gettype($data), |