1 | <?php |
||
5 | class JArray { |
||
6 | |||
7 | public static function isAssociative($array) { |
||
11 | |||
12 | public static function getValue($array, $key, $pos) { |
||
20 | |||
21 | public static function getConditionalValue($array,$key,$condition){ |
||
35 | |||
36 | public static function getDefaultValue($array, $key, $default=NULL) { |
||
42 | |||
43 | public static function implode($glue,$pieces){ |
||
58 | } |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.