This repository was archived by the owner on Jan 7, 2023. It is now read-only.
forked from sasanrose/phpredmin
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.php_cs
61 lines (51 loc) · 1.66 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
54
55
56
57
58
59
60
61
<?php
/*
* This file is part of the "PHP Redis Admin" package.
*
* (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 Sasan Rose <sasan.rose@gmail.com>
* @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-redis-admin
*/
$header = <<<'EOF'
This file is part of the "PHP Redis Admin" package.
(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 Sasan Rose <sasan.rose@gmail.com>
@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-redis-admin
EOF;
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);
$finder = Symfony\CS\Finder::create()
->exclude(array('vendor', 'var', 'bin'))
->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',
'short_echo_tag',
'-psr0', /*XXX*/
))
->finder($finder)
;
// vim:ft=php