forked from zendframework/zendframework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
26 lines (26 loc) · 1.1 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
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->exclude('demos')
->exclude('resources')
->notPath('tests/ZendTest/Code/Reflection/FunctionReflectionTest.php')
->notPath('tests/ZendTest/Code/Reflection/MethodReflectionTest.php')
->notPath('tests/ZendTest/Code/Reflection/TestAsset/closures.php')
->notPath('tests/ZendTest/Code/Reflection/TestAsset/functions.php')
->notPath('tests/ZendTest/Code/Reflection/TestAsset/TestSampleClass10.php')
->notPath('tests/ZendTest/Code/Reflection/TestAsset/TestSampleClass11.php')
->notPath('tests/ZendTest/Code/TestAsset')
->notPath('tests/ZendTest/Validator/_files')
->notPath('tests/ZendTest/Loader/_files')
->notPath('tests/ZendTest/Loader/TestAsset')
->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(Symfony\CS\FixerInterface::PSR2_LEVEL);
$config->finder($finder);
return $config;