-
Notifications
You must be signed in to change notification settings - Fork 17
/
.php_cs
32 lines (30 loc) · 953 Bytes
/
.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
$finder = PhpCsFixer\Finder::create()
->exclude('resources/')
->exclude('storage/')
->exclude('vendor/')
->exclude('node_modules/')
->in(__DIR__)
;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'@Symfony' => true,
'fully_qualified_strict_types' => true,
'no_superfluous_phpdoc_tags' => true,
'no_useless_else' => true,
'yoda_style' => [
'always_move_variable' => true,
'equal' => false,
'identical' => false,
'less_and_greater' => false,
],
'binary_operator_spaces' => [
'align_double_arrow' => true,
'align_equals' => false,
],
'declare_strict_types' => true,
])
->setFinder($finder)
;