| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 57 | 1 | public function handle(ServerRequestInterface $request): ResponseInterface |
|
| 58 | { |
||
| 59 | 1 | return $this->responseFactory->createResponse(204) |
|
| 60 | 1 | ->withHeader('Access-Control-Allow-Methods', implode(', ', $this->allowMethods)) |
|
| 61 | 1 | ->withHeader('Access-Control-Allow-Headers', implode(', ', $this->allowHeaders)) |
|
| 62 | 1 | ->withHeader('Access-Control-Max-Age', (string) $this->maxAge) |
|
| 63 | ; |
||
| 64 | } |
||
| 65 | } |
||
| 66 |