Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public static function merge(string $inputFile1, string $inputFile2, string $outputFile = ''): void |
||
15 | { |
||
16 | $command = array('yaml-tools', 'merge', '-i', $inputFile1, $inputFile2); |
||
17 | if (!empty($outputFile)) { |
||
18 | $command[] = '-o'; |
||
19 | $command[] = $outputFile; |
||
20 | } |
||
21 | $process = new Process($command); |
||
22 | $process->enableOutput(); |
||
23 | $process->setTty(true); |
||
24 | $process->mustRun(); |
||
25 | } |
||
43 |