| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function contact( |
||
| 30 | FormHydrator $formHydrator, |
||
| 31 | ServerRequestInterface $request, |
||
| 32 | ): ResponseInterface { |
||
| 33 | $form = new ContactForm(); |
||
| 34 | if (!$formHydrator->populateFromPostAndValidate($form, $request)) { |
||
| 35 | return $this->viewRenderer->render('form', ['form' => $form]); |
||
| 36 | } |
||
| 37 | |||
| 38 | $this->mailer->send($form); |
||
| 39 | |||
| 40 | return $this->responseFactory |
||
| 41 | ->createResponse(Status::FOUND) |
||
| 42 | ->withHeader(Header::LOCATION, $this->url->generate('site/contact')); |
||
| 43 | } |
||
| 45 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths