| Conditions | 3 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 53 | 3 | private function serializeChild(array &$serialized, $i, AbstractNode $child) |
|
| 54 | { |
||
| 55 | 3 | if (null !== $serializedChild = $child->serialize()) { |
|
| 56 | 1 | $serialized[] = $serializedChild; |
|
| 57 | 3 | } elseif ($this->allowDefault[$i]) { |
|
| 58 | 1 | $serialized[] = $child->getDefault(); |
|
| 59 | 1 | } |
|
| 60 | 3 | } |
|
| 61 | } |
||
| 62 |
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.