1 | <?php |
||
2 | |||
3 | $finder = (new PhpCsFixer\Finder()) |
||
0 ignored issues
–
show
|
|||
4 | ->in([ |
||
5 | __DIR__.'/src', |
||
6 | __DIR__.'/tests', |
||
7 | ]) |
||
8 | ; |
||
9 | |||
10 | return (new PhpCsFixer\Config()) |
||
0 ignored issues
–
show
The type
PhpCsFixer\Config was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
11 | ->setRules([ |
||
12 | '@PSR2' => true, |
||
13 | |||
14 | /* Imports / use */ |
||
15 | 'no_unused_imports' => true, |
||
16 | 'no_unneeded_import_alias' => true, |
||
17 | 'no_leading_import_slash' => true, |
||
18 | 'ordered_imports' => true, |
||
19 | |||
20 | /* Comments */ |
||
21 | 'single_line_comment_style' => true, |
||
22 | |||
23 | /* Blank lines */ |
||
24 | 'no_extra_blank_lines' => [ |
||
25 | 'tokens' => ['curly_brace_block'] |
||
26 | ] |
||
27 | ]) |
||
28 | ->setFinder($finder) |
||
29 | ; |
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