-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
31 lines (29 loc) · 860 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 = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('vendor')
->notName('autoload_classmap.php')
->notName('autoload_function.php')
->notName('LICENSE')
->notName('.php_cs')
->notName('composer.*')
->notName('*.md')
->notName('*.xml')
;
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => true,
'blank_line_before_return' => true,
'braces' => true,
//'no_empty_phpdoc' => true,
'no_unused_imports' => true,
'self_accessor' => true,
'single_blank_line_before_namespace' => true,
'standardize_not_equals' => true,
'ternary_operator_spaces' => true,
'whitespace_after_comma_in_array' => true,
])
->setFinder($finder)
;