-
Notifications
You must be signed in to change notification settings - Fork 0
/
php_cs.dist
34 lines (32 loc) · 1017 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
28
29
30
31
32
33
34
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . DIRECTORY_SEPARATOR . 'src')
->in(__DIR__ . DIRECTORY_SEPARATOR . 'tests')
;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setCacheFile(__DIR__ . '/.php_cs.cache')
->setRules(array(
'@Symfony' => true,
'@PHP70Migration' => true,
'ordered_imports' => [
'imports_order' => [
'class', 'function', 'const',
],
'sort_algorithm' => 'alpha',
],
'phpdoc_order' => true,
'phpdoc_summary' => false,
'phpdoc_separation' => false,
'phpdoc_var_without_name' => false,
'phpdoc_no_package' => false,
'concat_space' => [
'spacing' => 'one',
],
'binary_operator_spaces' => [
'align_double_arrow' => true,
'align_equals' => true,
],
))
->setFinder($finder)
;