-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
27 lines (25 loc) · 917 Bytes
/
.php_cs.dist
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 = PhpCsFixer\Finder::create()
->exclude(['dic', 'vendor'])
->notPath('src/Symfony/Component/Translation/Tests/fixtures/resources.php')
->in(__DIR__);
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'yoda_style' => true,
'array_syntax' => array('syntax' => 'short'),
'heredoc_to_nowdoc' => true,
'linebreak_after_opening_tag' => true,
'no_multiline_whitespace_before_semicolons'=> true,
'no_useless_else'=> true,
'no_useless_return'=>true,
'ordered_class_elements'=>true,
'ordered_imports'=> true,
'phpdoc_add_missing_param_annotation'=>true,
'phpdoc_order'=>true,
'concat_space' => ['spacing' => 'one'],
'no_unused_imports' => true,
'method_argument_space' => false,
])
->setFinder($finder);