-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.php_cs
45 lines (43 loc) · 1.34 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
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->exclude(array(
'app/cache',
'model/om',
'model/map',
'vendor',
'web/images',
'Symfony/Tests/Component/ClassLoader/ClassCollectionLoaderTest.php',
'Symfony/Tests/Component/DependencyInjection/Fixtures/containers/container9.php',
'Symfony/Tests/Component/DependencyInjection/Fixtures/includes/foo.php',
'Symfony/Tests/Component/DependencyInjection/Fixtures/php/services9.php',
'Symfony/Tests/Component/DependencyInjection/Fixtures/yaml/services9.yml',
'Symfony/Tests/Component/Routing/Fixtures/dumper/url_matcher1.php',
'Symfony/Tests/Component/Routing/Fixtures/dumper/url_matcher2.php',
'Symfony/Tests/Component/Yaml/Fixtures/sfTests.yml',
))
->notName('/.*\.(ico|gif|png|jpeg|jpg|bmp|zip|gz|tar|7z|tiff|log|phar|jar)/')
->in(array(
__DIR__.'/src',
))
;
return Symfony\CS\Config\Config::create()
->fixers(array(
'indentation',
'linefeed',
'unused_use',
'trailing_spaces',
'php_closing_tag',
'short_tag',
'return',
'visibility',
'braces',
'phpdoc_params',
'eof_ending',
'extra_empty_lines',
'include',
'psr0',
'controls_spaces',
'elseif',
))
->finder($finder)
;