-
Notifications
You must be signed in to change notification settings - Fork 11
/
.php_cs
36 lines (30 loc) · 1.27 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
35
36
<?php
$header = <<<EOF
This file is part of the ApacheTikaBundle Project.
(c) Mathieu Santo Stefano--Féron <[email protected]>
EOF;
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);
$finder = Symfony\CS\Finder\DefaultFinder::create()
->in(array(__DIR__))
->exclude('app/cache')
;
return Symfony\CS\Config\Config::create()
// Set to Symfony Level (PSR1 PSR2)
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
->fixers(array(
'header_comment', // Add the provided header comment ($header)
'newline_after_open_tag', // Force new line after <?php
'ordered_use', // Order "use" alphabetically
'long_array_syntax', // Replace [] by array()
'-empty_return', // Keep return null;
'phpdoc_order', // Clean up the /** php doc */
'concat_with_spaces', // Force space around concatenation operator
// Alignment war start here.
'-align_double_arrow', // Force no double arrow align
'unalign_double_arrow', // Keep double arrow simple
'-align_equals', // Force no aligned equals
'unalign_equals', // Keep equals simple
))
->setUsingCache(true)
->finder($finder)
;