-
-
Notifications
You must be signed in to change notification settings - Fork 188
/
.php-cs-fixer.dist.php
27 lines (25 loc) · 1.04 KB
/
.php-cs-fixer.dist.php
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
27
<?php
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude([
'src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle',
'src/Kunstmaan/CookieBundle/Resources/skeleton',
'node_modules',
])
// Temporary exclude translator class to avoid removing warmUp parameter docblock which is needed to silence a deprecation.
->notPath('src/Kunstmaan/TranslatorBundle/Service/Translator/Translator.php')
;
return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setRiskyAllowed(false)
->setRules([
'@Symfony' => true,
'class_attributes_separation' => ['elements' => ['method' => 'one']],
'concat_space' => ['spacing' => 'one'],
'phpdoc_summary' => false,
'yoda_style' => false,
'visibility_required' => ['elements' => ['property', 'method']],
'phpdoc_separation' => ['skip_unlisted_annotations' => true],
'fully_qualified_strict_types' => false,
])
->setFinder($finder);