| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 2 | public function run(ServerRequestInterface $request, ResponseInterface $response, array $args): ResponseInterface |
|
| 24 | { |
||
| 25 | 2 | $channel = $this->channelManager->create($args['name']); |
|
| 26 | |||
| 27 | 2 | $result = $this->requestHandler->handle($channel, $request); |
|
| 28 | |||
| 29 | 2 | if ($result !== null) { |
|
| 30 | 1 | $response->getBody()->write($result); |
|
| 31 | } |
||
| 32 | |||
| 33 | 2 | return $response->withStatus(200); |
|
| 34 | } |
||
| 35 | } |
||
| 36 |