Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
166 lars 1
<?php
2
 
3
$finder = Symfony\Component\Finder\Finder::create()
4
    ->notPath('bootstrap/*')
5
    ->notPath('storage/*')
6
    ->notPath('storage/*')
7
    ->notPath('resources/view/mail/*')
8
    ->in([
9
        __DIR__ . '/src',
10
        __DIR__ . '/tests',
11
    ])
12
    ->name('*.php')
13
    ->notName('*.blade.php')
14
    ->ignoreDotFiles(true)
15
    ->ignoreVCS(true);
16
 
17
return (new PhpCsFixer\Config)
18
    ->setRules([
19
        '@PSR12' => true,
20
        'array_syntax' => ['syntax' => 'short'],
21
        'ordered_imports' => ['sort_algorithm' => 'alpha'],
22
        'no_unused_imports' => true,
23
        'not_operator_with_successor_space' => true,
24
        'trailing_comma_in_multiline' => true,
25
        'phpdoc_scalar' => true,
26
        'unary_operator_spaces' => true,
27
        'binary_operator_spaces' => true,
28
        'blank_line_before_statement' => [
29
            'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'],
30
        ],
31
        'phpdoc_single_line_var_spacing' => true,
32
        'phpdoc_var_without_name' => true,
33
        'method_argument_space' => [
34
            'on_multiline' => 'ensure_fully_multiline',
35
            'keep_multiple_spaces_after_comma' => true,
36
        ]
37
    ])
38
    ->setFinder($finder);