| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | protected function mergeJson(string $targetFile, string $newContent) |
||
| 32 | { |
||
| 33 | $oldJson = $this->pathUtil->readAsJson($targetFile); |
||
| 34 | $newJson = \json_decode($newContent, true); |
||
| 35 | $merged = Arr::mergeRecursive($oldJson, $newJson); |
||
| 36 | |||
| 37 | $this->pathUtil->writeFile($targetFile, $merged); |
||
| 38 | } |
||
| 45 |