Conditions | 3 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
9 | 15 | public function __construct(array $config) |
|
10 | { |
||
11 | 15 | if (empty($config['scan']['paths']) || !is_array($config['scan']['paths'])) { |
|
12 | 3 | throw new \InvalidArgumentException( |
|
13 | 3 | 'Invalid scan \'paths\' config option. Please provide at least one path.' |
|
14 | ); |
||
15 | } |
||
16 | |||
17 | 12 | $this->config = $config; |
|
18 | 12 | } |
|
19 | |||
27 |