Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
40 | protected function mergeJson(string $targetFile, string $newContent): bool |
||
41 | { |
||
42 | $oldJson = $this->pathUtil->readAsJson($targetFile); |
||
43 | $newJson = \json_decode($newContent, true); |
||
44 | $merged = Arr::mergeRecursive($oldJson, $newJson); |
||
45 | |||
46 | return $this->pathUtil->writeFile($targetFile, $merged); |
||
47 | } |
||
54 |