-
Notifications
You must be signed in to change notification settings - Fork 12
/
.php_cs
35 lines (33 loc) · 869 Bytes
/
.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
<?php
printf("Executing php_cs!!!\n\n");
$finder = Symfony\CS\Finder\DefaultFinder::create()
->in(__DIR__)
->ignoreDotFiles(true)
->filter(function (SplFileInfo $file) {
$path = $file->getPathname();
switch (true) {
case (strrpos($path, '/test/Bootstrap.php')):
return false;
case (strrpos($path, '/vendor/')):
return false;
default:
return true;
}
});
return Symfony\CS\Config\Config::create()
->fixers(array(
'controls_spaces',
'braces',
'elseif',
'eof_ending',
'function_declaration',
'include',
'indentation',
'linefeed',
'php_closing_tag',
'short_tag',
'trailing_spaces',
'unused_use',
'visibility',
))
->finder($finder);