Conditions | 4 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function call() |
||
16 | { |
||
17 | $builder = $this->getBuilder(); |
||
18 | |||
19 | $paths = $this->getParam('paths', []); |
||
20 | |||
21 | foreach ($paths as $path) { |
||
22 | if (! is_dir($path) || ! is_writeable($path)) { |
||
23 | $builder->down()->withData('path', $path); |
||
24 | } |
||
25 | } |
||
26 | |||
27 | $builder->withData('paths', $paths); |
||
28 | |||
29 | return $builder->build(); |
||
30 | } |
||
32 |