@@ -175,7 +175,7 @@ discard block |
||
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 (array_key_exists($key, $newArray)) { |
181 | 181 | $newOrdered[$key] = $this->process($originalValue, $newArray[$key]); |
@@ -191,13 +191,13 @@ discard block |
||
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) |