-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php_cs.dist
More file actions
40 lines (37 loc) · 902 Bytes
/
.php_cs.dist
File metadata and controls
40 lines (37 loc) · 902 Bytes
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
33
34
35
36
37
38
39
40
<?php
$finder = PhpCsFixer\Finder::create()
->notPath('bootstrap/cache')
->notPath('storage')
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->notName('*.blade.php')
->notName('_ide_helper.php')
->ignoreDotFiles(true)
->ignoreVCS(true)
;
$rules = [
'@Symfony' => true,
'binary_operator_spaces' => [
'align_double_arrow' => true,
'align_equals' => true,
],
'braces' => [
'allow_single_line_closure' => true,
],
'no_empty_comment' => false,
'no_extra_consecutive_blank_lines' => [
'tokens' => [
'curly_brace_block',
'parenthesis_brace_block',
'extra',
'throw',
'use',
]
],
'new_with_braces' => false,
];
return PhpCsFixer\Config::create()
->setFinder($finder)
->setRules($rules)
->setUsingCache(true);