-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.php_cs
53 lines (46 loc) · 1.3 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/*
* This file is part of the smarty-gettext/tsmarty2c package.
*
* @copyright (c) Elan Ruusamäe
* @license BSD
* @see https://github.com/smarty-gettext/tsmarty2c
*
* For the full copyright and license information,
* please see the LICENSE and AUTHORS files
* that were distributed with this source code.
*/
$header = <<<EOF
This file is part of the smarty-gettext/tsmarty2c package.
@copyright (c) Elan Ruusamäe
@license BSD
@see https://github.com/smarty-gettext/tsmarty2c
For the full copyright and license information,
please see the LICENSE and AUTHORS files
that were distributed with this source code.
EOF;
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);
$finder = Symfony\CS\Finder\DefaultFinder::create()
->in(__DIR__)
->exclude('vendor')
->exclude('templates_c');
return Symfony\CS\Config\Config::create()
->setUsingCache(true)
->level(Symfony\CS\FixerInterface::NONE_LEVEL)
->fixers(array(
'linefeed',
'trailing_spaces',
'unused_use',
'-short_tag',
'return',
'visibility',
'php_closing_tag',
'extra_empty_lines',
'function_declaration',
'include',
'controls_spaces',
'elseif',
'-eof_ending',
'header_comment',
))
->finder($finder);