Total Complexity | 4 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class YamlTools |
||
8 | { |
||
9 | public const TMP_YAML_FILE = '/tmp/tmp.yml'; |
||
10 | |||
11 | /** |
||
12 | * Merge the content of $inputFile2 with $inputFile1's one, then write it into $outputFile (or stdout if empty) |
||
13 | */ |
||
14 | public static function merge(string $inputFile1, string $inputFile2, string $outputFile = ''): void |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Delete one element of the $inputFile (e.g. foo.bar[2].baz), then write it into $outputFile (or stdout if empty) |
||
29 | */ |
||
30 | public static function delete(string $elemToDelete, string $inputFile, string $outputFile = ''): void |
||
43 |