| Conditions | 4 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 9 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | View Code Duplication | public function loadContainersInternalAliases() |
|
| 34 | { |
||
| 35 | // `$this->aliases` is declared on each Container's Main Service Provider |
||
| 36 | foreach (isset($this->containerAliases) ? $this->containerAliases : [] as $aliasKey => $aliasValue) { |
||
| 37 | if (class_exists($aliasValue)) { |
||
| 38 | $this->loadAlias($aliasKey, $aliasValue); |
||
| 39 | } |
||
| 40 | } |
||
| 41 | } |
||
| 42 | |||
| 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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.