| Total Complexity | 6 | 
| Total Lines | 51 | 
| Duplicated Lines | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 22 | class PingServiceProvider extends ServiceProvider | ||
| 23 | { | ||
| 24 | /** | ||
| 25 | * Bootstrap the application services. | ||
| 26 | */ | ||
| 27 | public function boot() | ||
| 28 |     { | ||
| 29 |         if ($this->app->runningInConsole()) { | ||
| 30 | $this->publishCommands(); | ||
| 31 | $this->publishConfiguration(); | ||
| 32 | } | ||
| 33 | } | ||
| 34 | |||
| 35 | /** | ||
| 36 | * Register the application services. | ||
| 37 | */ | ||
| 38 | public function register() | ||
| 46 | }); | ||
| 47 | } | ||
| 48 | |||
| 49 | /** | ||
| 50 | * Publishes console commands. | ||
| 51 | * | ||
| 52 | * @return void | ||
| 53 | */ | ||
| 54 | private function publishCommands(): void | ||
| 59 | ]); | ||
| 60 | } | ||
| 61 | } | ||
| 62 | |||
| 63 | /** | ||
| 64 | * Publishes package configuration files. | ||
| 65 | * | ||
| 66 | * @return void | ||
| 67 | */ | ||
| 68 | private function publishConfiguration(): void | ||
| 75 | 
This check compares calls to functions or methods with their respective definitions. If the call has less arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.