| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 9 | class ConfigurationServiceProvider extends AbstractServiceProvider implements BootableServiceProviderInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * {@inheritdoc} |
||
| 13 | */ |
||
| 14 | protected $provides = [ |
||
| 15 | 'GITLAB_URL', |
||
| 16 | 'GITLAB_TOKEN', |
||
| 17 | 'SLACK_WEBHOOK_URL', |
||
| 18 | 'SLACK_CHANNEL', |
||
| 19 | ]; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * {@inheritdoc} |
||
| 23 | */ |
||
| 24 | public function register() |
||
| 25 | { |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Method will be invoked on registration of a service provider implementing |
||
| 30 | * this interface. Provides ability for eager loading of Service Providers. |
||
| 31 | * |
||
| 32 | * @return void |
||
| 33 | */ |
||
| 34 | public function boot() |
||
| 47 | } |
||
| 48 | } |
||
| 49 |
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.