Conditions | 4 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function multilingual() : Closure |
||
20 | { |
||
21 | return function ($key, $handle, $locales = []) { |
||
22 | return new MultilingualRoutePendingRegistration( |
||
23 | $this->container && $this->container->bound(MultilingualRegistrar::class) |
||
1 ignored issue
–
show
|
|||
24 | ? $this->container->make(MultilingualRegistrar::class) |
||
25 | : new MultilingualRegistrar($this), |
||
1 ignored issue
–
show
|
|||
26 | $key, |
||
27 | $handle, |
||
28 | $locales ?: locales() |
||
29 | ); |
||
30 | }; |
||
31 | } |
||
32 | } |
||
33 |
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.