| Total Complexity | 3 | 
| Total Lines | 19 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 13 | final class WebControllerService | ||
| 14 | { | ||
| 15 | public function __construct( | ||
| 16 | private ResponseFactoryInterface $responseFactory, | ||
| 17 | private UrlGeneratorInterface $urlGenerator | ||
| 18 |     ) { | ||
| 19 | } | ||
| 20 | |||
| 21 | public function getRedirectResponse(string $url): ResponseInterface | ||
| 22 |     { | ||
| 23 | return $this->responseFactory | ||
| 24 | ->createResponse(Status::FOUND) | ||
| 25 | ->withHeader(Header::LOCATION, $this->urlGenerator->generate($url)); | ||
| 26 | } | ||
| 27 | |||
| 28 | public function getNotFoundResponse(): ResponseInterface | ||
| 32 | } | ||
| 33 | } | ||
| 34 | 
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