Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
52 | protected static function mergeWithDefaultOptions(array $options): array |
||
53 | { |
||
54 | $options = array_replace_recursive(self::getDefaultOptions(), $options); |
||
55 | |||
56 | $options['watch']['directories'] = array_map(function ($directory) { |
||
57 | return getcwd()."/{$directory}"; |
||
58 | }, $options['watch']['directories']); |
||
59 | |||
60 | $options['watch']['directories'] = array_filter($options['watch']['directories'], function ($directory) { |
||
61 | return file_exists($directory); |
||
62 | }); |
||
63 | |||
64 | return $options; |
||
65 | } |
||
66 | } |
||
67 |