-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.php_cs.dist
25 lines (25 loc) · 866 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
<?php
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'phpdoc_align' => false,
'phpdoc_summary' => false,
'concat_space' => ['spacing' => 'one'],
'no_multiline_whitespace_before_semicolons' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'array_syntax' => ['syntax' => 'short'],
'no_short_echo_tag' => true,
'pre_increment' => false,
'yoda_style' => false,
'single_line_throw' => false,
'blank_line_before_statement' => ['statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try']],
])
->setFinder(
PhpCsFixer\Finder::create()
->exclude('coverage')
->exclude('vendor')
->in(__DIR__)
);