| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function onPlayerManialinkPageAnswer($playerUid, $login, $actionId, array $entries) |
||
| 18 | { |
||
| 19 | $entryValues = array(); |
||
| 20 | if(count($entries)) |
||
| 21 | { |
||
| 22 | foreach($entries as $entry) { |
||
| 23 | $entryValues[$entry['Name']] = $entry['Value']; |
||
| 24 | } |
||
| 25 | } |
||
| 26 | |||
| 27 | $this->dispatch(__METHOD__, [$login, $actionId, $entryValues]); |
||
| 28 | } |
||
| 29 | } |
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.