1 | <?php |
||
9 | class Db |
||
10 | { |
||
11 | //private static $db; |
||
|
|||
12 | |||
13 | /** |
||
14 | * |
||
15 | * @return Driver |
||
16 | */ |
||
17 | public static function getDriver() |
||
21 | |||
22 | public static function getDefaultDriverClassName() |
||
26 | |||
27 | 33 | private static function getDriverClassName($driver) |
|
36 | |||
37 | public static function reset() |
||
41 | |||
42 | 33 | public static function getConnection($parameters) |
|
47 | |||
48 | public static function query($query, $bindData = false) |
||
52 | } |
||
53 |
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.