| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function register() |
||
| 39 | { |
||
| 40 | // Automatically apply the package configuration |
||
| 41 | $this->mergeConfigFrom(__DIR__.'/../../config/config.php', 'ping'); |
||
| 42 | |||
| 43 | // Register the main class to use with the facade |
||
| 44 | $this->app->singleton('ping', function () { |
||
| 45 | return new Ping(); |
||
|
|
|||
| 46 | }); |
||
| 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.