forked from ampache/ampache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
35 lines (32 loc) · 1.01 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
<?php
$finder = PhpCsFixer\Finder::create()
->exclude(['vendor', 'lib/components', 'foam', 'ample', 'client', 'newclient'])
->in('public/')
->in('src/')
->in('tests/')
;
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'strict_param' => false,
'no_trailing_whitespace' => true,
'blank_line_before_return' => true,
'full_opening_tag' => true,
'braces' => ['allow_single_line_closure' => true],
'single_blank_line_at_eof' => true,
'visibility_required' => true,
'binary_operator_spaces' => ['align_equals' => true],
'concat_space' => ['spacing' => 'one'],
'elseif' => true,
'blank_line_after_namespace' => true,
'lowercase_constants' => true,
'encoding' => true,
'no_break_comment' => false,
'method_argument_space' => false,
'line_ending' => true,
])
->setIndent(" ")
->setUsingCache(false)
->setFinder($finder)
->setLineEnding("\n")
;