forked from zendframework/zendframework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
40 lines (40 loc) · 1.15 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
<?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')
->filter(function (SplFileInfo $file) {
if (strstr($file->getPath(), 'compatibility')) {
return false;
}
})
->in(__DIR__ . '/library')
->in(__DIR__ . '/tests')
->in(__DIR__ . '/bin');
$config = Symfony\CS\Config\Config::create();
$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;