Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class FindInvalidViewCalls extends FindInvalid |
||
10 | { |
||
11 | /** @var Collection */ |
||
12 | protected $viewPaths; |
||
13 | /** @var string $nameOfArgument */ |
||
14 | protected $nameOfArgument = 'View Path'; |
||
15 | /** @var FileViewFinder $views */ |
||
16 | protected $viewFinder; |
||
17 | |||
18 | public function __construct() |
||
19 | { |
||
20 | $this->viewFinder = app('view.finder'); |
||
21 | parent::__construct(); |
||
22 | } |
||
23 | |||
24 | protected function getFunctionName() |
||
25 | { |
||
26 | return 'view'; |
||
27 | } |
||
28 | |||
29 | protected function check(string $viewPath): bool |
||
38 | } |
||
39 | } |
||
40 |
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