Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | final class HomeController |
||
16 | { |
||
17 | /** |
||
18 | * Read more about Prototyping: |
||
19 | * @link https://spiral.dev/docs/basics-prototype/#installation |
||
20 | */ |
||
21 | use PrototypeTrait; |
||
22 | |||
23 | |||
24 | #[Route(route: '/', name: 'index')] |
||
25 | public function index(): string |
||
26 | { |
||
27 | return $this->views->render('home'); |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * Example of exception page. |
||
32 | */ |
||
33 | #[Route(route: '/exception', name: 'exception')] |
||
37 | } |
||
38 | } |
||
39 |
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