forked from rollerworks-graveyard/RollerworksMultiUserBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
39 lines (34 loc) · 931 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
36
37
38
39
<?php
/**
* @link http://cs.sensiolabs.org/
* @link http://symfony.com/doc/current/components/finder.html
*/
$finder = Symfony\CS\Finder\DefaultFinder::create()
->notName('LICENSE')
->notName('README.md')
->notName('.php_cs')
->notName('composer.*')
->notName('phpunit.xml*')
->notName('*.phar')
->notName('bootstrap.php.cache')
->ignoreDotFiles(true)
->ignoreVCS(true)
->exclude(
array(
'vendor',
'.idea',
'.sql',
)
)
// Ignore Resources/{meta,doc,public} and fixture dirs
->files()->filter(function (\SplFileInfo $file) {
if (preg_match('#(Resources/(meta|doc|public))|/fixtures/#i', str_replace('\\', '/', $file->getPath()))) {
return false;
}
})
->in(__DIR__)
;
return Symfony\CS\Config\Config::create()
->finder($finder)
->fixers(Symfony\CS\FixerInterface::ALL_LEVEL)
;