forked from sucresware/4sucres
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs
29 lines (27 loc) · 864 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
<?php
$finder = PhpCsFixer\Finder::create()
->notPath('bootstrap/cache')
->notPath('storage')
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'ordered_imports' => true,
'yoda_style' => false,
'concat_space' => ['spacing' => 'one'],
'blank_line_before_statement' => [
'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'],
],
'class_attributes_separation' => [
'elements' => ['method'],
],
'binary_operator_spaces' => [
'operators' => ['=>' => 'align'],
],
])
->setFinder($finder);