-
Notifications
You must be signed in to change notification settings - Fork 5
/
.php_cs
32 lines (28 loc) · 913 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
32
<?php
$header = <<<EOF
EOF;
//Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->exclude('bin')
->in(__DIR__);
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'@PSR2' => true,
'@PSR1' => true,
'short_array_syntax' => true,
'ordered_imports' => true,
'strict_comparison' => true,
'strict_param' => true,
'phpdoc_order' => true,
'no_useless_return' => true,
'ereg_to_preg' => true,
'concat_with_spaces' => true,
'concat_without_spaces' => false,
'align_double_arrow' => true,
'align_equals' => true
])
//->setUsingLinter(false)
->finder($finder)
->setUsingCache(true);