-
Notifications
You must be signed in to change notification settings - Fork 1
/
.php_cs.dist
37 lines (34 loc) · 1.11 KB
/
.php_cs.dist
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
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->exclude('JSMin')
->in(__DIR__ . '/test')
;
return PhpCsFixer\Config::create()
->setRules([
'@PSR1' => true,
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'braces' => ['position_after_functions_and_oop_constructs' => 'same'],
'cast_spaces' => true,
'class_attributes_separation' => true,
'concat_space' => ['spacing' => 'one'],
'include' => true,
'new_with_braces' => true,
'no_superfluous_elseif' => true,
'no_unneeded_control_parentheses' => true,
'no_unused_imports' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'no_whitespace_before_comma_in_array' => true,
'no_whitespace_in_blank_line' => true,
'ordered_imports' => true,
'return_assignment' => true,
'return_type_declaration' => true,
'single_quote' => true,
'trailing_comma_in_multiline_array' => true,
'trim_array_spaces' => true,
])
->setFinder($finder)
;
// vim: set ft=php :