Completed
Push — master ( d9b70a...c1d6b3 )
by Viacheslav
02:54
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   +3 added lines, -3 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
             JsonProcessor::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)
Please login to merge, or discard this patch.
src/JsonProcessor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,13 +45,13 @@  discard block
 block discarded – undo
45 45
                 if (array_key_exists($key, $vars)) {
46 46
                     $ref = $vars[$key];
47 47
                 } else {
48
-                    throw new Exception('Key not found: ' . $key);
48
+                    throw new Exception('Key not found: '.$key);
49 49
                 }
50 50
             } else {
51 51
                 if (array_key_exists($key, $ref)) {
52 52
                     $ref = $ref[$key];
53 53
                 } else {
54
-                    throw new Exception('Key not found: ' . $key);
54
+                    throw new Exception('Key not found: '.$key);
55 55
                 }
56 56
             }
57 57
         }
@@ -73,13 +73,13 @@  discard block
 block discarded – undo
73 73
                 if (property_exists($ref, $key)) {
74 74
                     $ref = &$ref->$key;
75 75
                 } else {
76
-                    throw new Exception('Key not found: ' . $key);
76
+                    throw new Exception('Key not found: '.$key);
77 77
                 }
78 78
             } else {
79 79
                 if (array_key_exists($key, $ref)) {
80 80
                     $ref = &$ref[$key];
81 81
                 } else {
82
-                    throw new Exception('Key not found: ' . $key);
82
+                    throw new Exception('Key not found: '.$key);
83 83
                 }
84 84
             }
85 85
         }
Please login to merge, or discard this patch.