Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
27 | public function configure($what) |
||
28 | { |
||
29 | if (is_array($what)) { |
||
30 | $options = $what; |
||
31 | } |
||
32 | elseif (is_readable($what)) { |
||
33 | $options = include $what; |
||
34 | } |
||
35 | else { |
||
36 | throw new Exception("Configure item '" . htmlentities($what) |
||
37 | . "' is not an array nor a readable file."); |
||
38 | } |
||
39 | |||
40 | $this->config = array_merge($this->config, $options); |
||
41 | return $this->config; |
||
42 | } |
||
43 | } |
||
44 |
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.