-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs
39 lines (38 loc) · 1.25 KB
/
.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
33
34
35
36
37
38
39
<?php
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_after_opening_tag' => true,
'blank_line_before_return' => true,
'linebreak_after_opening_tag' => true,
'multiline_whitespace_before_semicolons' => true,
'no_short_echo_tag' => true,
'no_trailing_comma_in_singleline_array' => true,
'no_unused_imports' => true,
'no_useless_else' => true,
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'short_scalar_cast' => true,
'single_blank_line_before_namespace' => true,
'single_quote' => true,
'ternary_operator_spaces' => true,
'trailing_comma_in_multiline_array' => true,
'trim_array_spaces' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude([
'bootstrap',
'node_modules',
'public',
'resources/js',
'resources/less',
'storage',
'vendor',
])
->name('*.php')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(true)
);