Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class MiddlewarePipe |
||
14 | implements MiddlewareInterface, |
||
15 | RequestHandlerInterface, |
||
16 | PipeInterface |
||
17 | { |
||
18 | private ?SplQueue $pipeline; |
||
19 | |||
20 | public function __construct() |
||
21 | { |
||
22 | $this->pipeline = new SplQueue(); |
||
23 | } |
||
24 | |||
25 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
26 | { |
||
27 | return (new Next($this->pipeline, $handler))->handle($request); |
||
28 | } |
||
29 | |||
30 | public function handle(ServerRequestInterface $request): ResponseInterface |
||
33 | } |
||
34 | |||
35 | public function pipe(MiddlewareInterface $middleware): void |
||
38 | } |
||
39 | } |
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.