| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 32 | public function indexAction(ServerRequestInterface $request, array $args): ResponseInterface |
||
| 33 | { |
||
| 34 | $msg = new EmailMessage(); |
||
| 35 | $msg->setFrom('[email protected]'); |
||
| 36 | $msg->setTo('[email protected]'); |
||
| 37 | $msg->setSubject('Purest clickbait'); |
||
| 38 | $msg->setTemplate('testemails::hello'); |
||
| 39 | $msg->setViewData([ |
||
| 40 | 'name' => 'John', |
||
| 41 | ]); |
||
| 42 | |||
| 43 | $this->mailService->sendEmail($msg); |
||
| 44 | $body = $this->view->render('test::index', []); |
||
| 45 | |||
| 46 | return new HtmlResponse($body); |
||
| 47 | } |
||
| 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.