-
Notifications
You must be signed in to change notification settings - Fork 1
/
.php_cs
41 lines (32 loc) · 1.01 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
<?php
$header = <<<EOF
This file is part of the Faktiva "PHP Admin ToolKit".
(c) Faktiva (http://faktiva.com)
NOTICE OF LICENSE
This source file is subject to the CC BY-SA 4.0 license that is
available at the URL https://creativecommons.org/licenses/by-sa/4.0/
DISCLAIMER
This code is provided as is without any warranty.
No promise of being safe or secure
@author Emiliano 'AlberT' Gabrielli <albert@faktiva.com>
@license https://creativecommons.org/licenses/by-sa/4.0/ CC-BY-SA-4.0
@source https://github.com/faktiva/php-admin-tk
EOF;
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);
$finder = Symfony\CS\Finder::create()
->exclude('web/tools')
->in(__DIR__)
;
return Symfony\CS\Config\Config::create()
->setUsingCache(true)
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
->fixers(array(
'header_comment',
'empty_return',
'long_array_syntax',
'newline_after_open_tag',
'short_echo_tag',
))
->finder($finder)
;
// vim:ft=php