Issues (24)

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

Labels
Severity
1
<?php
2
3
$finder = (new PhpCsFixer\Finder())
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([
5
        __DIR__.'/src',
6
        __DIR__.'/tests',
7
        __DIR__.'/examples'
8
    ])
9
;
10
11
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...
12
    ->setRules([
13
        '@PSR12' => true,
14
        '@PHP81Migration' => true,
15
        'no_unused_imports' => true,
16
        'blank_line_before_statement' => true,
17
        'cast_spaces' => true,
18
        'comment_to_phpdoc' => true,
19
        'declare_strict_types' => true,
20
        'type_declaration_spaces' => true,
21
        'linebreak_after_opening_tag' => true,
22
        'list_syntax' => ['syntax' => 'short'],
23
        'lowercase_static_reference' => true,
24
        'lowercase_cast' => true,
25
        'method_chaining_indentation' => true,
26
        'native_function_casing' => true,
27
        'native_function_invocation' => ['include' => ['@compiler_optimized']],
28
        'new_with_braces' => true,
29
        'modernize_types_casting' => true,
30
        'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
31
        'no_empty_statement' => true,
32
        'no_extra_blank_lines' => true,
33
        'no_multiline_whitespace_around_double_arrow' => true,
34
        'no_singleline_whitespace_before_semicolons' => true,
35
        'object_operator_without_whitespace' => true,
36
        'ordered_class_elements' => true,
37
        'array_syntax' => ['syntax' => 'short'],
38
        'php_unit_dedicate_assert' => true,
39
        'php_unit_dedicate_assert_internal_type' => true,
40
        'php_unit_expectation' => true,
41
        'phpdoc_add_missing_param_annotation' => true,
42
        'phpdoc_annotation_without_dot' => true,
43
        'phpdoc_to_return_type' => true,
44
        'phpdoc_align' => ['align' => 'left'],
45
        'no_empty_phpdoc' => true,
46
        'phpdoc_indent' => true,
47
        'trim_array_spaces' => true,
48
        'phpdoc_no_empty_return' => true,
49
        'include' => true,
50
        'phpdoc_no_useless_inheritdoc' => true,
51
        'no_unneeded_control_parentheses' => true,
52
        'no_leading_import_slash' => true,
53
        'phpdoc_order' => true,
54
        'phpdoc_return_self_reference' => true,
55
        'phpdoc_scalar' => true,
56
        'phpdoc_separation' => true,
57
        'phpdoc_single_line_var_spacing' => true,
58
        'phpdoc_summary' => true,
59
        'phpdoc_trim' => true,
60
        'phpdoc_types' => true,
61
        'phpdoc_types_order' => ['null_adjustment' => 'always_last'],
62
        'phpdoc_var_annotation_correct_order' => true,
63
//        'phpdoc_to_param_type' => false,
64
        'no_superfluous_phpdoc_tags' => ['allow_mixed' => true],
65
        'binary_operator_spaces' => true,
66
        'single_quote' => true,
67
        'semicolon_after_instruction' => true,
68
        'return_type_declaration' => true,
69
        'short_scalar_cast' => true,
70
        'single_line_comment_style' => true,
71
        'psr_autoloading' => true,
72
        'class_attributes_separation' => ['elements' => ['method' => 'one', 'property' => 'one']],
73
        'space_after_semicolon' => true,
74
        'no_whitespace_in_blank_line' => true,
75
        'strict_comparison' => true,
76
        'ternary_operator_spaces' => true,
77
        'ternary_to_null_coalescing' => true,
78
        'unary_operator_spaces' => true,
79
        'whitespace_after_comma_in_array' => true,
80
    ])
81
    ->setFinder($finder)
82
    ;
83