| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 53 | protected function mergeValues($valueOne, $valueTwo) |
||
| 54 | { |
||
| 55 | if (is_null($valueOne)) { |
||
| 56 | return $valueTwo; |
||
| 57 | } |
||
| 58 | |||
| 59 | $valueOne = explode(' ', $valueOne); |
||
| 60 | $valueTwo = explode(' ', $valueTwo); |
||
| 61 | |||
| 62 | $merged = array_merge($valueOne, $valueTwo); |
||
| 63 | |||
| 64 | return trim(implode(' ', $merged)); |
||
| 65 | } |
||
| 66 | } |
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.