Issues (13)

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

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
    ->exclude('tests/Stub')
5
    ->in(__DIR__);
6
7
$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. 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
return $config->setRules(
9
    array(
10
        '@PSR2' => true,
11
        'array_indentation' => true,
12
        'array_syntax' => array('syntax' => 'short'),
13
        'combine_consecutive_unsets' => true,
14
        'single_quote' => true,
15
16
        'braces' => array(
17
            'allow_single_line_closure' => true,
18
        ),
19
        'cast_spaces' => false,
20
        'concat_space' => array('spacing' => 'one'),
21
        'declare_equal_normalize' => true,
22
        'function_typehint_space' => true,
23
        'include' => true,
24
        'lowercase_cast' => true,
25
        'native_function_casing' => true,
26
        'new_with_braces' => true,
27
        'no_blank_lines_after_class_opening' => true,
28
        'no_blank_lines_after_phpdoc' => true,
29
        'no_empty_comment' => true,
30
        'no_empty_phpdoc' => true,
31
        'no_empty_statement' => true,
32
        'no_leading_import_slash' => true,
33
        'no_leading_namespace_whitespace' => true,
34
        'no_mixed_echo_print' => array('use' => 'echo'),
35
        'no_multiline_whitespace_around_double_arrow' => true,
36
        'no_short_bool_cast' => true,
37
        'no_singleline_whitespace_before_semicolons' => true,
38
        'no_spaces_around_offset' => true,
39
        'no_trailing_comma_in_list_call' => true,
40
        'no_trailing_comma_in_singleline_array' => true,
41
        'no_unneeded_control_parentheses' => true,
42
        'no_unused_imports' => true,
43
        'no_whitespace_before_comma_in_array' => true,
44
        'no_whitespace_in_blank_line' => true,
45
        'normalize_index_brace' => true,
46
        'object_operator_without_whitespace' => true,
47
        // 'php_unit_fqcn_annotation' => true,
48
        // 'phpdoc_align' => true,
49
        // 'phpdoc_annotation_without_dot' => true,
50
        // 'phpdoc_indent' => true,
51
        // 'phpdoc_inline_tag' => true,
52
        // 'phpdoc_no_access' => true,
53
        // 'phpdoc_no_alias_tag' => true,
54
        // 'phpdoc_no_empty_return' => true,
55
        // 'phpdoc_no_package' => true,
56
        // 'phpdoc_no_useless_inheritdoc' => true,
57
        // 'phpdoc_return_self_reference' => true,
58
        // 'phpdoc_scalar' => true,
59
        // 'phpdoc_separation' => true,
60
        // 'phpdoc_single_line_var_spacing' => true,
61
        // 'phpdoc_summary' => true,
62
        // 'phpdoc_to_comment' => true,
63
        // 'phpdoc_trim' => true,
64
        // 'phpdoc_types' => true,
65
        // 'phpdoc_var_without_name' => true,
66
        'return_type_declaration' => true,
67
        //'self_accessor' => true,
68
        'short_scalar_cast' => true,
69
        'single_blank_line_before_namespace' => true,
70
        'single_class_element_per_statement' => true,
71
        'space_after_semicolon' => true,
72
        'standardize_not_equals' => true,
73
        'ternary_operator_spaces' => true,
74
        'trailing_comma_in_multiline' => true,
75
        'trim_array_spaces' => true,
76
        'unary_operator_spaces' => true,
77
        'whitespace_after_comma_in_array' => true,
78
        'declare_strict_types' => true,
79
    )
80
)
81
    //->setIndent("\t")
82
    ->setRiskyAllowed(true)
83
    ->setLineEnding("\n")
84
    ->setFinder($finder);
85