| 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 |
||
| 55 | 2 | View Code Duplication | public function sameValueAs(ValueObjectInterface $stringLiteral) |
| 56 | { |
||
| 57 | 2 | if (false === Util::classEquals($this, $stringLiteral)) { |
|
| 58 | 1 | return false; |
|
| 59 | } |
||
| 60 | |||
| 61 | 2 | return $this->toNative() === $stringLiteral->toNative(); |
|
| 62 | } |
||
| 63 | |||
| 84 |
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.