Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 8 |
Ratio | 100 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
64 | 2 | View Code Duplication | public function sameValueAs(ValueObjectInterface $uuid) |
65 | { |
||
66 | 2 | if (false === Util::classEquals($this, $uuid)) { |
|
67 | 1 | return false; |
|
68 | } |
||
69 | |||
70 | 2 | return $this->toNative() === $uuid->toNative(); |
|
71 | } |
||
72 | } |
||
73 |
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.