Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | class ServiceProvider extends Provider |
||
27 | { |
||
28 | /** |
||
29 | * The items provided by this provider. |
||
30 | * |
||
31 | * @return string[] |
||
32 | */ |
||
33 | public static function publishers(): array |
||
34 | { |
||
35 | return [ |
||
36 | DefaultAdapter::class => 'publishDefaultAdapter', |
||
37 | Asset::class => 'publishAsset', |
||
38 | ]; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * The items provided by this provider. |
||
43 | * |
||
44 | * @return string[] |
||
45 | */ |
||
46 | public static function provides(): array |
||
47 | { |
||
48 | return [ |
||
49 | DefaultAdapter::class, |
||
50 | Asset::class, |
||
51 | ]; |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * Publish the provider. |
||
56 | * |
||
57 | * @param Container $container The container |
||
58 | * |
||
59 | * @return void |
||
60 | */ |
||
61 | public static function publish(Container $container): void |
||
63 | } |
||
64 | } |
||
65 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.