-
Notifications
You must be signed in to change notification settings - Fork 5
/
.php_cs
32 lines (31 loc) · 1.04 KB
/
.php_cs
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
31
32
<?php
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules(array(
'@Symfony' => true,
'array_syntax' => array('syntax' => 'short'),
'ordered_imports' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'php_unit_construct' => true,
'php_unit_strict' => true,
'implode_call' => true,
'phpdoc_add_missing_param_annotation' => true,
'concat_space' => ['spacing' => 'one'],
'blank_line_before_statement' => false,
'phpdoc_separation' => false,
'phpdoc_align' => false,
'phpdoc_summary' => false,
'single_trait_insert_per_statement' => false,
'yoda_style' => null,
'method_chaining_indentation' => true,
'array_indentation' => true,
'binary_operator_spaces'=>['operators'=>['=>'=>'align_single_space']]
))
->setIndent(' ')
->setLineEnding(PHP_EOL)
->setFinder(
PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__)
);