| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 33 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface |
||
| 34 | { |
||
| 35 | // if the file exists, then the application is closed for maintenance... |
||
| 36 | $file = $this->container->get('app.root') . '/.down'; |
||
| 37 | if (file_exists($file)) { |
||
| 38 | return $this->createResponse(503) |
||
| 39 | ->withHeaderObject(new HeaderRetryAfter(new DateTime('+5 minutes'))); |
||
|
|
|||
| 40 | } |
||
| 41 | |||
| 42 | return $handler->handle($request); |
||
| 43 | } |
||
| 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.