Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 8 |
Ratio | 100 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
37 | View Code Duplication | public function sameValueAs(ValueObjectInterface $enum) |
|
38 | { |
||
39 | if (false === Util::classEquals($this, $enum)) { |
||
40 | return false; |
||
41 | } |
||
42 | |||
43 | return $this->toNative() === $enum->toNative(); |
||
44 | } |
||
45 | |||
56 |
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.