| Conditions | 5 |
| Paths | 6 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public function call() |
||
| 33 | { |
||
| 34 | $builder = $this->getBuilder(); |
||
| 35 | |||
| 36 | $errors = []; |
||
| 37 | |||
| 38 | foreach ($this->files as $file) { |
||
| 39 | if (! is_file($file) || ! $this->isValid($file)) { |
||
| 40 | $errors[] = $file; |
||
| 41 | } |
||
| 42 | } |
||
| 43 | |||
| 44 | if ($errors) { |
||
| 45 | $builder->down()->withData('errors', $errors); |
||
| 46 | } |
||
| 47 | |||
| 48 | return $builder->withData('files', $this->files)->build(); |
||
| 49 | } |
||
| 58 |