forked from zendframework/zendframework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
47 lines (47 loc) · 1.44 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
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->notPath('Zend/View/Stream.php')
->notPath('ZendTest/Code/Generator/TestAsset')
->notPath('ZendTest/Code/Reflection/FunctionReflectionTest.php')
->notPath('ZendTest/Code/Reflection/MethodReflectionTest.php')
->notPath('ZendTest/Code/Reflection/TestAsset')
->notPath('ZendTest/Code/TestAsset')
->notPath('ZendTest/Validator/_files')
->notPath('ZendTest/Loader/_files')
->notPath('ZendTest/Loader/TestAsset')
->notPath('demos')
->notPath('resources')
// Following are necessary when you use `parallel` or specify a path
// from the project root.
->notPath('Stream.php')
->notPath('Generator/TestAsset')
->notPath('Reflection/FunctionReflectionTest.php')
->notPath('Reflection/MethodReflectionTest.php')
->notPath('Reflection/TestAsset')
->notPath('TestAsset')
->notPath('_files')
->filter(function (SplFileInfo $file) {
if (strstr($file->getPath(), 'compatibility')) {
return false;
}
});
$config = Symfony\CS\Config\Config::create();
$config->level(null);
$config->fixers(
array(
'indentation',
'linefeed',
'trailing_spaces',
'short_tag',
'visibility',
'php_closing_tag',
'braces',
'function_declaration',
'psr0',
'elseif',
'eof_ending',
'unused_use',
)
);
$config->finder($finder);
return $config;