| Conditions | 1 |
| Paths | 1 |
| Total Lines | 4 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 10 | public static function isDebug() |
||
|
1 ignored issue
–
show
|
|||
| 11 | { |
||
| 12 | return in_array('--debug', $GLOBALS['argv'], true); |
||
| 13 | } |
||
| 14 | |||
| 26 |
Instead of super-globals, we recommend to explicitly inject the dependencies of your class. This makes your code less dependent on global state and it becomes generally more testable: