sop /
jwx
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types = 1); |
||
| 4 | |||
| 5 | $finder = \PhpCsFixer\Finder::create() |
||
|
0 ignored issues
–
show
|
|||
| 6 | ->in(__DIR__); |
||
| 7 | |||
| 8 | $config = 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 Loading history...
|
|||
| 9 | return $config->setRules([ |
||
| 10 | '@PSR2' => true, |
||
| 11 | '@PhpCsFixer' => true, |
||
| 12 | 'multiline_whitespace_before_semicolons' => [ |
||
| 13 | 'strategy' => 'no_multi_line' |
||
| 14 | ], |
||
| 15 | 'declare_equal_normalize' => [ |
||
| 16 | 'space' => 'single' |
||
| 17 | ], |
||
| 18 | 'method_argument_space' => [ |
||
| 19 | 'on_multiline' => 'ignore' |
||
| 20 | ], |
||
| 21 | 'trailing_comma_in_multiline' => [ |
||
| 22 | 'elements' => [] |
||
| 23 | ], |
||
| 24 | 'blank_line_before_statement' => [ |
||
| 25 | 'statements' => [] |
||
| 26 | ], |
||
| 27 | 'concat_space' => [ |
||
| 28 | 'spacing' => 'one' |
||
| 29 | ], |
||
| 30 | 'list_syntax' => [ |
||
| 31 | 'syntax' => 'short' |
||
| 32 | ], |
||
| 33 | 'echo_tag_syntax' => [ |
||
| 34 | 'format' => 'short' |
||
| 35 | ], |
||
| 36 | 'no_alternative_syntax' => false, |
||
| 37 | 'php_unit_test_class_requires_covers' => false, |
||
| 38 | 'phpdoc_to_comment' => false, |
||
| 39 | 'phpdoc_var_without_name' => false, |
||
| 40 | ])->setFinder($finder); |
||
| 41 |
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