| Conditions | 3 |
| Paths | 3 |
| Total Lines | 25 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public static function parseOptions($options) |
||
| 18 | { |
||
| 19 | if (empty($options)) { |
||
| 20 | return null; |
||
| 21 | } |
||
| 22 | |||
| 23 | $decoded_options = json_decode($options); |
||
| 24 | if (empty($decoded_options)) { |
||
| 25 | throw new UnableToParseOptionsException(); |
||
| 26 | } |
||
| 27 | |||
| 28 | // @fixme: process $decoded_options->included_extensions |
||
| 29 | // regex: ^.*((\.inc)|(\.php))$ |
||
| 30 | |||
| 31 | // @fixme: process $decoded_options->excluded_extensions |
||
| 32 | // regex: ^.*(?<!(\.inc)|(\.php))$ |
||
| 33 | |||
| 34 | // @fixme: process $decoded_options->excluded_files |
||
| 35 | // regex: ^(FilesHandler.php)|(GitHandler.inc)$ |
||
| 36 | |||
| 37 | // @fixme: process $decoded_options->included_files |
||
| 38 | // regex: ? |
||
| 39 | |||
| 40 | return $parsed_options; |
||
|
|
|||
| 41 | } |
||
| 42 | } |
This check looks for variables that are accessed but have not been defined. It raises an issue if it finds another variable that has a similar name.
The variable may have been renamed without also renaming all references.