1 | <?php |
||
12 | class Mapping { |
||
13 | |||
14 | public static function mapCity() { |
||
21 | |||
22 | public static function mapDetail() { |
||
48 | |||
49 | public static function mapDay() { |
||
56 | |||
57 | /*public static function map() { |
||
|
|||
58 | return [ |
||
59 | "forecast" => [ |
||
60 | "name" => "City", |
||
61 | "attributes" => [ |
||
62 | "city" => "city", |
||
63 | "country" => "country" |
||
64 | ], |
||
65 | "fact" => [ |
||
66 | "name" => "fact", |
||
67 | "station" => [ |
||
68 | "name" => "station", |
||
69 | "attributes" => [ |
||
70 | "lang" => "lang" |
||
71 | ] |
||
72 | ], |
||
73 | "uptime" => "uptime", |
||
74 | "image" => [ |
||
75 | "name" => "image", |
||
76 | "attributes" => [ |
||
77 | "type" => "type" |
||
78 | ] |
||
79 | ] |
||
80 | ] |
||
81 | ] |
||
82 | ]; |
||
83 | }*/ |
||
84 | |||
85 | } |
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.