-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.php_cs
31 lines (29 loc) · 972 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
<?php
$finder = Symfony\Component\Finder\Finder::create()
->notPath('vendor')
->notPath('bootstrap')
->notPath('storage')
->in(__DIR__)
->name('*.php')
->notName('*.blade.php')
->notName('_ide_helper.php');
return PhpCsFixer\Config::create()
->setUsingCache(false)
->setRules([
'@PSR2' => true,
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_after_opening_tag' => true,
'cast_spaces' => true,
'concat_space' => ['spacing' => 'none'],
'elseif' => true,
'no_blank_lines_after_class_opening' => true,
'no_closing_tag' => true,
'no_leading_import_slash' => true,
'no_trailing_whitespace' => true,
'no_unused_imports' => true,
'no_useless_else' => true,
'ordered_imports' => ['sortAlgorithm' => 'length'],
'trailing_comma_in_multiline_array' => true,
])
->setFinder($finder);