forked from smarty-gettext/smarty-gettext
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php_cs
More file actions
45 lines (38 loc) · 1.23 KB
/
.php_cs
File metadata and controls
45 lines (38 loc) · 1.23 KB
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
<?php
/*
* This file is part of the smarty-gettext package.
*
* @copyright (c) Elan Ruusamäe
* @license GNU Lesser General Public License, version 2.1
* @see https://github.com/smarty-gettext/smarty-gettext/
*
* 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 package.
@copyright (c) Elan Ruusamäe
@license GNU Lesser General Public License, version 2.1
@see https://github.com/smarty-gettext/smarty-gettext/
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')
;
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)
;