@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | |
189 | 189 | foreach ($originalKeys as $key => $originalValue) { |
190 | 190 | $path = $this->path; |
191 | - $this->path .= '/' . urlencode($key); |
|
191 | + $this->path .= '/'.urlencode($key); |
|
192 | 192 | |
193 | 193 | if (array_key_exists($key, $newArray)) { |
194 | 194 | $newOrdered[$key] = $this->process($originalValue, $newArray[$key]); |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | // additions |
208 | 208 | foreach ($newArray as $key => $value) { |
209 | 209 | $newOrdered[$key] = $value; |
210 | - $path = $this->path . '/' . urlencode($key); |
|
210 | + $path = $this->path.'/'.urlencode($key); |
|
211 | 211 | JsonProcessor::pushByPath($this->added, $path, $value); |
212 | 212 | $this->addedCnt++; |
213 | 213 | $this->addedPaths [] = $path; |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | } |
217 | 217 | } |
218 | 218 | |
219 | - return is_array($new) ? $newOrdered : (object)$newOrdered; |
|
219 | + return is_array($new) ? $newOrdered : (object) $newOrdered; |
|
220 | 220 | } |
221 | 221 | |
222 | 222 | private function rearrangeArray(array $original, array $new) |