Issues (49)

.php-cs-fixer.dist.php (2 issues)

Labels
Severity
1
<?php
2
3
$finder = PhpCsFixer\Finder::create()
0 ignored issues
show
The type PhpCsFixer\Finder 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
4
    ->in([__DIR__.'/src', __DIR__.'/tests'])
5
;
6
7
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
    ->setRules([
9
        '@Symfony' => true,
10
        '@Symfony:risky' => true,
11
        '@DoctrineAnnotation' => true,
12
        '@PHP71Migration' => true,
13
        '@PHP71Migration:risky' => true,
14
        '@PHPUnit75Migration:risky' => true,
15
        'multiline_whitespace_before_semicolons' => ['strategy' => 'new_line_for_chained_calls'],
16
        'multiline_comment_opening_closing' => true,
17
        'array_syntax' => ['syntax' => 'short'],
18
        'ordered_imports' => [
19
            'imports_order' => ['const', 'class', 'function'],
20
        ],
21
        'ordered_class_elements' => true,
22
        'native_function_invocation' => ['include' => ['@internal']],
23
        'explicit_indirect_variable' => true,
24
        'explicit_string_variable' => true,
25
        'escape_implicit_backslashes' => true,
26
        'mb_str_functions' => true,
27
        'logical_operators' => true,
28
        'php_unit_method_casing' => ['case' => 'snake_case'],
29
        'php_unit_test_annotation' => ['style' => 'annotation'],
30
        'no_unreachable_default_argument_value' => true,
31
        'declare_strict_types' => false,
32
        'void_return' => false,
33
        'single_trait_insert_per_statement' => false,
34
        'simple_to_complex_string_variable' => true,
35
        'no_superfluous_phpdoc_tags' => [
36
            'allow_mixed' => true,
37
            'allow_unused_params' => true,
38
            'remove_inheritdoc' => true,
39
        ],
40
        'phpdoc_to_comment' => false,
41
        'function_declaration' => ['closure_function_spacing' => 'none'],
42
        'nullable_type_declaration_for_default_null_value' => true,
43
44
        // temporary fix for union types (ref: https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/5495)
45
        'binary_operator_spaces' => ['operators' => ['|' => null]],
46
    ])
47
    ->setRiskyAllowed(true)
48
    ->setFinder($finder)
49
;
50