Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public function toNode(DOMDocument $document = null) |
||
29 | { |
||
30 | if (null === $document) { |
||
31 | $document = new DOMDocument(); |
||
32 | } |
||
33 | |||
34 | $node = $document->createElement('DeliveryConfirmation'); |
||
35 | |||
36 | $node->appendChild($document->createElement('DCISType', $this->getDcisType())); |
||
37 | |||
38 | return $node; |
||
39 | } |
||
40 | |||
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
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.