zenstruck /
messenger-test
| 1 | <?php |
||
| 2 | |||
| 3 | $finder = PhpCsFixer\Finder::create() |
||
|
0 ignored issues
–
show
|
|||
| 4 | ->in([__DIR__.'/src', __DIR__.'/tests']) |
||
| 5 | ->notName('*.tpl.php') |
||
| 6 | ; |
||
| 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 | |||
| 10 | return $config |
||
| 11 | ->setRules([ |
||
| 12 | '@Symfony' => true, |
||
| 13 | '@Symfony:risky' => true, |
||
| 14 | '@DoctrineAnnotation' => true, |
||
| 15 | '@PHP71Migration' => true, |
||
| 16 | '@PHP71Migration:risky' => true, |
||
| 17 | '@PHPUnit75Migration:risky' => true, |
||
| 18 | 'multiline_whitespace_before_semicolons' => ['strategy' => 'new_line_for_chained_calls'], |
||
| 19 | 'multiline_comment_opening_closing' => true, |
||
| 20 | 'array_syntax' => ['syntax' => 'short'], |
||
| 21 | 'ordered_imports' => [ |
||
| 22 | 'imports_order' => ['const', 'class', 'function'], |
||
| 23 | ], |
||
| 24 | 'ordered_class_elements' => true, |
||
| 25 | 'native_function_invocation' => ['include' => ['@internal']], |
||
| 26 | 'explicit_indirect_variable' => true, |
||
| 27 | 'explicit_string_variable' => true, |
||
| 28 | 'escape_implicit_backslashes' => true, |
||
| 29 | 'mb_str_functions' => true, |
||
| 30 | 'logical_operators' => true, |
||
| 31 | 'php_unit_method_casing' => ['case' => 'snake_case'], |
||
| 32 | 'php_unit_test_annotation' => ['style' => 'annotation'], |
||
| 33 | 'no_unreachable_default_argument_value' => true, |
||
| 34 | 'declare_strict_types' => false, |
||
| 35 | 'void_return' => false, |
||
| 36 | 'single_trait_insert_per_statement' => false, |
||
| 37 | 'simple_to_complex_string_variable' => true, |
||
| 38 | 'no_superfluous_phpdoc_tags' => [ |
||
| 39 | 'allow_mixed' => true, |
||
| 40 | 'allow_unused_params' => true, |
||
| 41 | 'remove_inheritdoc' => true, |
||
| 42 | ], |
||
| 43 | 'phpdoc_to_comment' => false, |
||
| 44 | 'function_declaration' => ['closure_function_spacing' => 'none'], |
||
| 45 | 'nullable_type_declaration_for_default_null_value' => true, |
||
| 46 | ]) |
||
| 47 | ->setRiskyAllowed(true) |
||
| 48 | ->setFinder($finder) |
||
| 49 | ; |
||
| 50 |
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