| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function sayHi(ServerRequestInterface $request, ResponseInterface $response, array $args) |
||
|
|
|||
| 18 | { |
||
| 19 | /** @var HelloInterface $hello */ |
||
| 20 | $hello = $this->container->get(HelloInterface::class); |
||
| 21 | |||
| 22 | return $response->withArray( |
||
| 23 | [ |
||
| 24 | 'message' => sprintf('%s %s', $hello->sayHi(), $args['name']) |
||
| 25 | ], |
||
| 26 | 200 |
||
| 27 | ); |
||
| 28 | } |
||
| 29 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.