-
Notifications
You must be signed in to change notification settings - Fork 1
/
.php-cs-fixer.dist.php
30 lines (29 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
28
29
30
<?php
return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setRules([
'@Symfony' => true,
'phpdoc_separation' => false,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'no_unreachable_default_argument_value' => false,
'braces' => ['allow_single_line_closure' => true],
'heredoc_to_nowdoc' => false,
'phpdoc_annotation_without_dot' => false,
'php_unit_test_annotation' => false,
'php_unit_method_casing' => false,
'global_namespace_import' => ['import_classes' => true, 'import_constants' => false, 'import_functions' => false],
'psr_autoloading' => false,
])
->setRiskyAllowed(true)
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
->notPath('conf/')
->notPath('tmp/')
->notPath('node_modules/')
->notPath('var/cache')
->notPath('vendor/')
->notPath('www')
)
;