| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public static function delete(string $elemToDelete, string $inputFile, string $outputFile = ''): void |
||
| 31 | { |
||
| 32 | $command = array('yaml-tools', 'delete', $elemToDelete, '-i', $inputFile); |
||
| 33 | if (!empty($outputFile)) { |
||
| 34 | $command[] = '-o'; |
||
| 35 | $command[] = $outputFile; |
||
| 36 | } |
||
| 37 | $process = new Process($command); |
||
| 38 | $process->enableOutput(); |
||
| 39 | $process->setTty(true); |
||
| 40 | $process->mustRun(); |
||
| 41 | } |
||
| 43 |