@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | if ($isArray) { |
248 | 248 | $actualKey -= $removedOffset; |
249 | 249 | } |
250 | - $this->path .= '/' . JsonPointer::escapeSegment($actualKey, $this->options & self::JSON_URI_FRAGMENT_ID); |
|
250 | + $this->path .= '/'.JsonPointer::escapeSegment($actualKey, $this->options & self::JSON_URI_FRAGMENT_ID); |
|
251 | 251 | $this->pathItems[] = $actualKey; |
252 | 252 | |
253 | 253 | if (array_key_exists($key, $newArray)) { |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | return null; |
279 | 279 | } |
280 | 280 | $newOrdered[$key] = $value; |
281 | - $path = $this->path . '/' . JsonPointer::escapeSegment($key, $this->options & self::JSON_URI_FRAGMENT_ID); |
|
281 | + $path = $this->path.'/'.JsonPointer::escapeSegment($key, $this->options & self::JSON_URI_FRAGMENT_ID); |
|
282 | 282 | $pathItems = $this->pathItems; |
283 | 283 | $pathItems[] = $key; |
284 | 284 | JsonPointer::add($this->added, $pathItems, $value); |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | |
289 | 289 | } |
290 | 290 | |
291 | - return is_array($new) ? $newOrdered : (object)$newOrdered; |
|
291 | + return is_array($new) ? $newOrdered : (object) $newOrdered; |
|
292 | 292 | } |
293 | 293 | |
294 | 294 | private function rearrangeArray(array $original, array $new) |