Completed
Push — master ( 2dd7b5...d21843 )
by Viacheslav
20:04 queued 09:55
created
src/JsonDiff.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -256,11 +256,11 @@  discard block
 block discarded – undo
256 256
 
257 257
         if ($this->options & self::TOLERATE_ASSOCIATIVE_ARRAYS) {
258 258
             if (is_array($original) && !empty($original) && !array_key_exists(0, $original)) {
259
-                $original = (object)$original;
259
+                $original = (object) $original;
260 260
             }
261 261
 
262 262
             if (is_array($new) && !empty($new) && !array_key_exists(0, $new)) {
263
-                $new = (object)$new;
263
+                $new = (object) $new;
264 264
             }
265 265
         }
266 266
 
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
             JsonPointer::add($this->merge, $this->pathItems, $new);
317 317
         }
318 318
 
319
-        $isUriFragment = (bool)($this->options & self::JSON_URI_FRAGMENT_ID);
319
+        $isUriFragment = (bool) ($this->options & self::JSON_URI_FRAGMENT_ID);
320 320
         $diffCnt = $this->addedCnt + $this->modifiedCnt + $this->removedCnt;
321 321
         foreach ($originalKeys as $key => $originalValue) {
322 322
             if ($this->options & self::STOP_ON_DIFF) {
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
             if ($isArray && is_int($actualKey)) {
332 332
                 $actualKey -= $removedOffset;
333 333
             }
334
-            $this->path .= '/' . JsonPointer::escapeSegment((string)$actualKey, $isUriFragment);
334
+            $this->path .= '/'.JsonPointer::escapeSegment((string) $actualKey, $isUriFragment);
335 335
             $this->pathItems[] = $actualKey;
336 336
 
337 337
             if (array_key_exists($key, $newArray)) {
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
                 return null;
373 373
             }
374 374
             $newOrdered[$key] = $value;
375
-            $path = $this->path . '/' . JsonPointer::escapeSegment($key, $isUriFragment);
375
+            $path = $this->path.'/'.JsonPointer::escapeSegment($key, $isUriFragment);
376 376
             $pathItems = $this->pathItems;
377 377
             $pathItems[] = $key;
378 378
             JsonPointer::add($this->added, $pathItems, $value);
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
 
389 389
         }
390 390
 
391
-        return is_array($new) ? $newOrdered : (object)$newOrdered;
391
+        return is_array($new) ? $newOrdered : (object) $newOrdered;
392 392
     }
393 393
 
394 394
     /**
@@ -521,7 +521,7 @@  discard block
 block discarded – undo
521 521
 
522 522
                 $newRearranged[$j] = $new[$i];
523 523
             } else {
524
-                $changedItems []= $new[$i];
524
+                $changedItems [] = $new[$i];
525 525
             }
526 526
 
527 527
         }
Please login to merge, or discard this patch.