forked from centralnic/php-epp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs.dist
27 lines (24 loc) · 823 Bytes
/
.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
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('tests')
->in(__DIR__)
;
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'declare_equal_normalize' => ['space' => 'single'],
'array_syntax' => ['syntax' => 'long'],
'object_operator_without_whitespace' => true,
'binary_operator_spaces' => true,
'no_alternative_syntax' => true,
'braces' => true,
'php_unit_method_casing' => ['case' => 'camel_case'],
'class_attributes_separation' => ['elements' => ['method']],
'no_blank_lines_after_phpdoc' => true,
'no_trailing_whitespace' => true,
'constant_case' => ['case' => 'lower'],
'phpdoc_indent' => true,
'phpdoc_align' => ['align' => 'vertical'],
])
->setFinder($finder)
;