| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | final class SiteController |
||
| 15 | { |
||
| 16 | public function __construct(private ViewRenderer $viewRenderer) |
||
| 17 | { |
||
| 18 | $this->viewRenderer = $viewRenderer->withController($this); |
||
| 19 | } |
||
| 20 | |||
| 21 | #[Route( |
||
| 22 | methods: ['GET'], |
||
| 23 | pattern: '/', |
||
| 24 | name: 'site/index', |
||
| 25 | )] |
||
| 26 | public function index(): ResponseInterface |
||
| 27 | { |
||
| 28 | return $this->viewRenderer->render('index'); |
||
| 29 | } |
||
| 30 | |||
| 31 | #[Route( |
||
| 43 | } |
||
| 44 | |||
| 45 | #[Route( |
||
| 57 | } |
||
| 58 | } |
||
| 59 |
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