Issues (490)

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

Labels
Severity
1
<?php declare(strict_types=1);
2
/**
3
 * PHP-CS-Fixer config for elabftw
4
 * @author Nicolas CARPi <[email protected]>
5
 * @copyright 2012 Nicolas CARPi
6
 * @see https://www.elabftw.net Official website
7
 * @license AGPL-3.0
8
 * @package elabftw
9
 */
10
11
$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...
12
    ->name('/\.php|console|init|\.php.dist$/')
13
    ->exclude('_output')
14
    ->exclude('_support')
15
    ->in(['bin', 'src', 'tests', 'web'])
16
;
17
18
$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...
19
20
return $config->setRules(array(
21
    '@PSR2' => true,
22
    '@PHP71Migration' => true,
23
    'array_syntax' => ['syntax' => 'long'],
24
    'class_attributes_separation' => true,
25
    'declare_strict_types' => true,
26
    'dir_constant' => true,
27
    'is_null' => true,
28
    'no_homoglyph_names' => true,
29
    'no_null_property_initialization' => true,
30
    'no_php4_constructor' => true,
31
    'no_unused_imports' => true,
32
    'no_useless_else' => true,
33
    'non_printable_character' => true,
34
    'ordered_imports' => true,
35
    'ordered_class_elements' => true,
36
    'php_unit_construct' => true,
37
    'pow_to_exponentiation' => true,
38
    'psr_autoloading' => true,
39
    'random_api_migration' => true,
40
    'return_assignment' => true,
41
    'self_accessor' => true,
42
    'semicolon_after_instruction' => true,
43
    'short_scalar_cast' => true,
44
    'simplified_null_return' => true,
45
    'blank_lines_before_namespace' => true,
46
    'single_class_element_per_statement' => true,
47
    'single_line_comment_style' => true,
48
    'single_quote' => true,
49
    'space_after_semicolon' => true,
50
    'standardize_not_equals' => true,
51
    'strict_param' => true,
52
    'ternary_operator_spaces' => true,
53
    'trailing_comma_in_multiline' => true,
54
    'trim_array_spaces' => true,
55
    'unary_operator_spaces' => true,
56
    'global_namespace_import' => [
57
        'import_classes' => true,
58
        'import_functions' => true,
59
        'import_constants' => true,
60
    ],
61
))
62
    ->setFinder($finder)
63
    ->setRiskyAllowed(true)
64
;
65