@@ -262,11 +262,11 @@ discard block |
||
| 262 | 262 | |
| 263 | 263 | if ($this->options & self::TOLERATE_ASSOCIATIVE_ARRAYS) { |
| 264 | 264 | if (is_array($original) && !empty($original) && !array_key_exists(0, $original)) { |
| 265 | - $original = (object)$original; |
|
| 265 | + $original = (object) $original; |
|
| 266 | 266 | } |
| 267 | 267 | |
| 268 | 268 | if (is_array($new) && !empty($new) && !array_key_exists(0, $new)) { |
| 269 | - $new = (object)$new; |
|
| 269 | + $new = (object) $new; |
|
| 270 | 270 | } |
| 271 | 271 | } |
| 272 | 272 | |
@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | JsonPointer::add($this->merge, $this->pathItems, $new); |
| 323 | 323 | } |
| 324 | 324 | |
| 325 | - $isUriFragment = (bool)($this->options & self::JSON_URI_FRAGMENT_ID); |
|
| 325 | + $isUriFragment = (bool) ($this->options & self::JSON_URI_FRAGMENT_ID); |
|
| 326 | 326 | $diffCnt = $this->addedCnt + $this->modifiedCnt + $this->removedCnt; |
| 327 | 327 | foreach ($originalKeys as $key => $originalValue) { |
| 328 | 328 | if ($this->options & self::STOP_ON_DIFF) { |
@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | if ($isArray && is_int($actualKey)) { |
| 338 | 338 | $actualKey -= $removedOffset; |
| 339 | 339 | } |
| 340 | - $this->path .= '/' . JsonPointer::escapeSegment((string)$actualKey, $isUriFragment); |
|
| 340 | + $this->path .= '/'.JsonPointer::escapeSegment((string) $actualKey, $isUriFragment); |
|
| 341 | 341 | $this->pathItems[] = $actualKey; |
| 342 | 342 | |
| 343 | 343 | if (array_key_exists($key, $newArray)) { |
@@ -378,7 +378,7 @@ discard block |
||
| 378 | 378 | return null; |
| 379 | 379 | } |
| 380 | 380 | $newOrdered[$key] = $value; |
| 381 | - $path = $this->path . '/' . JsonPointer::escapeSegment($key, $isUriFragment); |
|
| 381 | + $path = $this->path.'/'.JsonPointer::escapeSegment($key, $isUriFragment); |
|
| 382 | 382 | $pathItems = $this->pathItems; |
| 383 | 383 | $pathItems[] = $key; |
| 384 | 384 | JsonPointer::add($this->added, $pathItems, $value); |
@@ -394,7 +394,7 @@ discard block |
||
| 394 | 394 | |
| 395 | 395 | } |
| 396 | 396 | |
| 397 | - return is_array($new) ? $newOrdered : (object)$newOrdered; |
|
| 397 | + return is_array($new) ? $newOrdered : (object) $newOrdered; |
|
| 398 | 398 | } |
| 399 | 399 | |
| 400 | 400 | /** |