Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
35 | 8 | public function check(array $config): bool |
|
36 | { |
||
37 | 8 | $this->extensions = Collection::make(array_get($config, 'extensions', [])); |
|
38 | 4 | $this->extensions = $this->extensions->reject(function ($ext) { |
|
39 | 8 | return extension_loaded($ext) === false; |
|
40 | 8 | }); |
|
41 | |||
42 | 8 | return $this->extensions->isEmpty(); |
|
43 | } |
||
44 | |||
58 |