| Conditions | 6 |
| Paths | 3 |
| Total Lines | 25 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | function flt_mission_attack($objMission) { |
||
| 15 | $objFleet = $objMission->fleet; |
||
| 16 | |||
| 17 | if($objFleet->shipsGetTotal() <= 0) { |
||
| 18 | return; |
||
| 19 | } |
||
| 20 | |||
| 21 | $destination_user = $objMission->dst_user; |
||
| 22 | |||
| 23 | if( |
||
| 24 | // Нет данных о планете назначения или её владельце |
||
| 25 | empty($destination_user) |
||
| 26 | || |
||
| 27 | !is_array($destination_user) |
||
| 28 | || |
||
| 29 | // "Уничтожение" не на луну |
||
| 30 | ($objFleet->mission_type == MT_DESTROY && $objFleet->fleet_end_type != PT_MOON) |
||
| 31 | ) { |
||
| 32 | $objFleet->markReturnedAndSave(); |
||
| 33 | |||
| 34 | return; |
||
| 35 | } |
||
| 36 | |||
| 37 | UBE::flt_mission_attack($objMission); |
||
| 38 | } |
||
| 39 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.