Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
56 | 4 | public function check(array $config): bool |
|
57 | { |
||
58 | 4 | $this->paths = Collection::make(Arr::get($config, 'directories', [])); |
|
59 | |||
60 | 2 | $this->paths = $this->paths->reject(function ($path) { |
|
61 | 4 | return $this->filesystem->isWritable($path); |
|
62 | 4 | }); |
|
63 | |||
64 | 4 | return $this->paths->isEmpty(); |
|
65 | } |
||
66 | } |
||
67 |