Passed
Branch master (455e1e)
by Viacheslav
03:24 queued 34s
created
src/Cli/Diff.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,13 +54,13 @@
 block discarded – undo
54 54
     {
55 55
         $originalJson = file_get_contents($this->originalPath);
56 56
         if (!$originalJson) {
57
-            $this->response->error('Unable to read ' . $this->originalPath);
57
+            $this->response->error('Unable to read '.$this->originalPath);
58 58
             return;
59 59
         }
60 60
 
61 61
         $newJson = file_get_contents($this->newPath);
62 62
         if (!$newJson) {
63
-            $this->response->error('Unable to read ' . $this->newPath);
63
+            $this->response->error('Unable to read '.$this->newPath);
64 64
             return;
65 65
         }
66 66
 
Please login to merge, or discard this patch.
src/JsonDiff.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 
176 176
         foreach ($originalKeys as $key => $originalValue) {
177 177
             $path = $this->path;
178
-            $this->path .= '/' . urlencode($key);
178
+            $this->path .= '/'.urlencode($key);
179 179
 
180 180
             if (isset($newArray[$key])) {
181 181
                 $newOrdered[$key] = $this->process($originalValue, $newArray[$key]);
@@ -191,13 +191,13 @@  discard block
 block discarded – undo
191 191
         // additions
192 192
         foreach ($newArray as $key => $value) {
193 193
             $newOrdered[$key] = $value;
194
-            $path = $this->path . '/' . urlencode($key);
194
+            $path = $this->path.'/'.urlencode($key);
195 195
             $this->pushByPath($this->added, $path, $value);
196 196
             $this->addedCnt++;
197 197
             $this->addedPaths [] = $path;
198 198
         }
199 199
 
200
-        return is_array($new) ? $newOrdered : (object)$newOrdered;
200
+        return is_array($new) ? $newOrdered : (object) $newOrdered;
201 201
     }
202 202
 
203 203
     private function rearrangeArray(array $original, array $new)
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
         }
291 291
         $ref = &$holder;
292 292
         while (null !== $key = array_shift($pathItems)) {
293
-            $ref = &$ref[(string)$key];
293
+            $ref = &$ref[(string) $key];
294 294
         }
295 295
         $ref = $value;
296 296
     }
Please login to merge, or discard this patch.