Passed
Push — main ( ee0fb9...269aa4 )
by Thomas
02:42
created

.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
    ->exclude('somedir')
5
    ->notPath('src/Symfony/Component/Translation/Tests/fixtures/resources.php')
6
    ->in(__DIR__);
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. 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...
9
10
11
return $config->setRules([
12
    '@PSR12' => true,
13
    '@PhpCsFixer' => true,
14
    'no_extra_blank_lines' => false,
15
    'multiline_whitespace_before_semicolons' => false,
16
    'no_whitespace_before_comma_in_array' => true,
17
    'trailing_comma_in_multiline' => true,
18
    'braces' => true,
19
    'array_indentation' => true,
20
    'array_syntax' => ['syntax' => 'short'],
21
    'class_definition' => ['space_before_parenthesis' => true],
22
    'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
23
    'multiline_comment_opening_closing' => false,
24
    'no_unused_imports' => false,
25
    'phpdoc_to_comment' => false,
26
    'yoda_style' => false,
27
    'increment_style' => ['style' => 'post'],
28
    'cast_spaces' => ['space' => 'none'],
29
    'concat_space' => [
30
        'spacing' => 'one',
31
    ],
32
    'global_namespace_import' => [
33
        'import_classes' => true,
34
        'import_constants' => null,
35
        'import_functions' => null,
36
    ],
37
])->setFinder($finder);
38