1 | <?php |
||
6 | class UBEDebris { |
||
7 | |||
8 | /** |
||
9 | * @var array [$resource_id] => (int)$resource_amount |
||
10 | */ |
||
11 | protected $debris = array(); |
||
12 | |||
13 | public function __construct() { |
||
16 | |||
17 | public function _reset() { |
||
23 | |||
24 | /** |
||
25 | * @param int $resource_id |
||
26 | * @param float $resource_amount |
||
27 | */ |
||
28 | public function debris_add_resource($resource_id, $resource_amount) { |
||
35 | |||
36 | /** |
||
37 | * @param array $wreckage Список ресурсов, выпавших в обломки с кораблей |
||
38 | * @param bool $is_simulator |
||
39 | */ |
||
40 | public function add_wrecks(array $wreckage, $is_simulator) { |
||
51 | |||
52 | /** |
||
53 | * @param array $dropped_resources Список ресурсов, выброшенных из трюма |
||
54 | * @param bool $is_simulator |
||
55 | */ |
||
56 | public function add_cargo_drop(array $dropped_resources, $is_simulator) { |
||
67 | |||
68 | |||
69 | /** |
||
70 | * @return array |
||
71 | */ |
||
72 | public function get_debris() { |
||
75 | |||
76 | /** |
||
77 | * @param int $resource_id |
||
78 | * |
||
79 | * @return float |
||
80 | */ |
||
81 | public function debris_get_resource($resource_id) { |
||
84 | |||
85 | /** |
||
86 | * @return float |
||
87 | */ |
||
88 | public function debris_total() { |
||
91 | |||
92 | /** |
||
93 | * @param $moon_debris_left_part |
||
94 | */ |
||
95 | public function debris_adjust_proportional($moon_debris_left_part) { |
||
100 | |||
101 | /** |
||
102 | * @return int |
||
103 | */ |
||
104 | public function debris_in_metal() { |
||
111 | |||
112 | /** |
||
113 | * @return array |
||
114 | */ |
||
115 | public function report_generate_array() { |
||
122 | |||
123 | /** |
||
124 | * @param array $report_row |
||
125 | */ |
||
126 | public function load_from_report_row(array $report_row) { |
||
131 | |||
132 | } |
||
133 |
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.