1 | <?php |
||
2 | |||
3 | $finder = Symfony\Component\Finder\Finder::create() |
||
4 | ->in([ |
||
5 | __DIR__ . '/src', |
||
6 | __DIR__ . '/tests', |
||
7 | ]) |
||
8 | ->name('*.php') |
||
9 | ->notName('*.blade.php') |
||
10 | ->ignoreDotFiles(true) |
||
11 | ->ignoreVCS(true); |
||
12 | |||
13 | return (new PhpCsFixer\Config()) |
||
0 ignored issues
–
show
|
|||
14 | ->setRules([ |
||
15 | '@PSR12' => true, |
||
16 | 'array_syntax' => ['syntax' => 'short'], |
||
17 | 'ordered_imports' => ['sort_algorithm' => 'alpha'], |
||
18 | 'no_unused_imports' => true, |
||
19 | 'not_operator_with_successor_space' => true, |
||
20 | 'trailing_comma_in_multiline' => true, |
||
21 | 'phpdoc_scalar' => true, |
||
22 | 'unary_operator_spaces' => true, |
||
23 | 'binary_operator_spaces' => true, |
||
24 | 'blank_line_before_statement' => [ |
||
25 | 'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'], |
||
26 | ], |
||
27 | 'phpdoc_single_line_var_spacing' => true, |
||
28 | 'phpdoc_var_without_name' => true, |
||
29 | 'class_attributes_separation' => [ |
||
30 | 'elements' => [ |
||
31 | 'method' => 'one', |
||
32 | ], |
||
33 | ], |
||
34 | 'method_argument_space' => [ |
||
35 | 'on_multiline' => 'ensure_fully_multiline', |
||
36 | 'keep_multiple_spaces_after_comma' => true, |
||
37 | ], |
||
38 | 'single_trait_insert_per_statement' => true, |
||
39 | ]) |
||
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