| 1 | <?php declare(strict_types=1); |
||
| 12 | class TestController |
||
| 13 | { |
||
| 14 | /** @var ViewEngine $view */ |
||
| 15 | private $view; |
||
| 16 | |||
| 17 | /** @var MailService $mailService */ |
||
| 18 | private $mailService; |
||
| 19 | |||
| 20 | public function __construct(ViewEngine $view, MailService $mailService) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param ServerRequestInterface $request |
||
| 28 | * @param array $args |
||
| 29 | * @return ResponseInterface $response |
||
| 30 | * @throws \Exception |
||
| 31 | */ |
||
| 32 | public function indexAction(ServerRequestInterface $request, array $args): ResponseInterface |
||
| 48 | } |
||
| 49 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.