-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
26 lines (22 loc) · 926 Bytes
/
.php-cs-fixer.dist.php
File metadata and controls
26 lines (22 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = (new Finder())
->in(__DIR__);
return (new Config())
->setRules([
'@PhpCsFixer' => true,
'@PSR1' => true,
'@PSR2' => true,
'@PSR12' => true,
'@Symfony' => true,
'concat_space' => ['spacing' => 'one'], // overrules @Symfony
'global_namespace_import' => ['import_classes' => false],
'multiline_whitespace_before_semicolons' => ['strategy' => 'no_multi_line'], // overrules @PhpCsFixer
'no_superfluous_elseif' => false, // overrules @PhpCsFixer
'php_unit_data_provider_method_order' => false, // overrules @PhpCsFixer
'phpdoc_align' => ['tags' => ['method', 'param', 'property', 'return', 'throws', 'type', 'var'], 'align' => 'left'], // overrules @Symfony
'yoda_style' => false, // overrules @Symfony
])
->setFinder($finder);