Passed
Pull Request — master (#70)
by
unknown
08:19
created
src/JsonDiff.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -261,11 +261,11 @@  discard block
 block discarded – undo
261 261
 
262 262
         if ($this->options & self::TOLERATE_ASSOCIATIVE_ARRAYS) {
263 263
             if (is_array($original) && !empty($original) && !array_key_exists(0, $original)) {
264
-                $original = (object)$original;
264
+                $original = (object) $original;
265 265
             }
266 266
 
267 267
             if (is_array($new) && !empty($new) && !array_key_exists(0, $new)) {
268
-                $new = (object)$new;
268
+                $new = (object) $new;
269 269
             }
270 270
         }
271 271
 
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
             JsonPointer::add($this->merge, $this->pathItems, $new);
322 322
         }
323 323
 
324
-        $isUriFragment = (bool)($this->options & self::JSON_URI_FRAGMENT_ID);
324
+        $isUriFragment = (bool) ($this->options & self::JSON_URI_FRAGMENT_ID);
325 325
         $diffCnt = $this->addedCnt + $this->modifiedCnt + $this->removedCnt;
326 326
         foreach ($originalKeys as $key => $originalValue) {
327 327
             if ($this->options & self::STOP_ON_DIFF) {
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
 
333 333
             $path = $this->path;
334 334
             $pathItems = $this->pathItems;
335
-            $this->path .= '/' . JsonPointer::escapeSegment((string)$key, $isUriFragment);
335
+            $this->path .= '/'.JsonPointer::escapeSegment((string) $key, $isUriFragment);
336 336
             $this->pathItems[] = $key;
337 337
 
338 338
             if (array_key_exists($key, $newArray)) {
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
                 return null;
374 374
             }
375 375
             $newOrdered[$key] = $value;
376
-            $path = $this->path . '/' . JsonPointer::escapeSegment($key, $isUriFragment);
376
+            $path = $this->path.'/'.JsonPointer::escapeSegment($key, $isUriFragment);
377 377
             $pathItems = $this->pathItems;
378 378
             $pathItems[] = $key;
379 379
             JsonPointer::add($this->added, $pathItems, $value);
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
 
390 390
         }
391 391
 
392
-        return is_array($new) ? $newOrdered : (object)$newOrdered;
392
+        return is_array($new) ? $newOrdered : (object) $newOrdered;
393 393
     }
394 394
 
395 395
     /**
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
 
537 537
                 $newRearranged[$j] = $new[$i];
538 538
             } else {
539
-                $changedItems []= $new[$i];
539
+                $changedItems [] = $new[$i];
540 540
             }
541 541
 
542 542
         }
Please login to merge, or discard this patch.