Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
22 | final class FilesystemServiceProvider extends BaseServiceProvider |
||
23 | { |
||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | 39 | public function register(): void |
|
37 | } |
||
38 | 39 | } |
|
39 | |||
40 | /** |
||
41 | * Returns the default application filesystems config. |
||
42 | * |
||
43 | * We it simple we use the `local` driver. |
||
44 | */ |
||
45 | 39 | protected function getDefaultConfig(): array |
|
58 |
This check compares calls to functions or methods with their respective definitions. If the call has more 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.