Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3.243 |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | 2 | public function configure($what) |
|
28 | { |
||
29 | 2 | if (is_array($what)) { |
|
30 | $options = $what; |
||
31 | 2 | } elseif (is_readable($what)) { |
|
32 | 2 | $options = include $what; |
|
33 | 2 | } else { |
|
34 | throw new Exception("Configure item '" . htmlentities($what) |
||
35 | . "' is not an array nor a readable file."); |
||
36 | } |
||
37 | |||
38 | 2 | $this->config = array_merge($this->config, $options); |
|
39 | 2 | return $this->config; |
|
40 | } |
||
41 | } |
||
42 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.