Completed
Pull Request — master (#1248)
by Саша
24:01 queued 08:58
created
src/GraphNavigator/SerializationGraphNavigator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.