| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 11 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 56 | View Code Duplication | public function publishLumenConfig(): bool |
|
| 57 | { |
||
| 58 | if (! is_dir(base_path('config'))) { |
||
| 59 | mkdir(base_path('config')); |
||
| 60 | } |
||
| 61 | |||
| 62 | return copy( |
||
| 63 | __DIR__.'/../../config/honeybadger.php', |
||
| 64 | base_path('config/honeybadger.php') |
||
| 65 | ); |
||
| 66 | } |
||
| 67 | } |
||
| 68 |
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.