Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class CMSMiddlewareServiceProvider implements ServiceProviderInterface |
||
17 | { |
||
18 | |||
19 | public function getFactories() |
||
20 | { |
||
21 | return [ |
||
22 | CMSMiddleware::class => [self::class, 'createCmsMiddleware'], |
||
23 | ]; |
||
24 | } |
||
25 | |||
26 | public function getExtensions() |
||
27 | { |
||
28 | return [ |
||
29 | MiddlewareListServiceProvider::MIDDLEWARES_QUEUE => [self::class,'updatePriorityQueue'], |
||
30 | ]; |
||
31 | } |
||
32 | |||
33 | |||
34 | public static function createCmsMiddleware(ContainerInterface $container): CMSMiddleware |
||
37 | } |
||
38 | |||
39 | public static function updatePriorityQueue(ContainerInterface $container, \SplPriorityQueue $queue = null) : \SplPriorityQueue |
||
43 | } |
||
44 | } |
||
45 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.