Conditions | 4 |
Paths | 6 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public function __construct(array $files, array $options = array()) |
||
29 | { |
||
30 | $this->files = $files; |
||
31 | |||
32 | if (array_key_exists('base_dir', $options)) { |
||
33 | $this->base_dir = $options['base_dir']; |
||
34 | } |
||
35 | |||
36 | if (array_key_exists('extension', $options)) { |
||
37 | if (empty($options['extension'])) { |
||
38 | $this->extension = ''; |
||
39 | } else { |
||
40 | $this->extension = '.' . ltrim($options['extension'], '.'); |
||
41 | } |
||
42 | } |
||
43 | } |
||
44 | |||
79 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.