-
Notifications
You must be signed in to change notification settings - Fork 1
/
.php-cs-fixer.dist.php
28 lines (27 loc) · 1 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
<?php
return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setRules([
'@Symfony' => true,
'phpdoc_separation' => false,
'array_syntax' => array('syntax' => 'short'),
'no_unreachable_default_argument_value' => false,
'braces' => array('allow_single_line_closure' => true),
'heredoc_to_nowdoc' => false,
'phpdoc_annotation_without_dot' => false,
'php_unit_test_annotation' => ['style' => 'annotation'],
'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/')
)
;