Conditions | 4 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 9 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
20 | View Code Duplication | public function loadShipInternalAliases() |
|
21 | { |
||
22 | // `$this->aliases` is declared on the Main Service Provider of the Ship layer |
||
23 | foreach (isset($this->aliases) ? $this->aliases : [] as $aliasKey => $aliasValue) { |
||
24 | if (class_exists($aliasValue)) { |
||
25 | $this->loadAlias($aliasKey, $aliasValue); |
||
26 | } |
||
27 | } |
||
28 | } |
||
29 | |||
52 |
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.