forked from djaiss/egonotifier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
27 lines (25 loc) · 852 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
<?php
$finder = Symfony\Component\Finder\Finder::create()
->notPath('vendor')
->notPath('bootstrap')
->notPath('storage')
->in(__DIR__)
->name('*.php')
->notName('*.blade.php')
->ignoreVCS(true);
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => ['sortAlgorithm' => 'length'],
'single_quote' => true,
'phpdoc_summary' => true,
'phpdoc_add_missing_param_annotation' => true,
'no_unused_imports' => true,
'no_trailing_comma_in_list_call' => false,
'no_whitespace_in_blank_line' => true,
'no_whitespace_before_comma_in_array' => true,
'trailing_comma_in_multiline_array' => true,
'function_typehint_space' => true,
])
->setFinder($finder);