forked from geokrety/geokrety-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs
49 lines (46 loc) · 1.59 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
48
49
<?php
if (class_exists('PhpCsFixer\Finder')) { // PHP-CS-Fixer 2.x
$finder = PhpCsFixer\Finder::create()
->exclude('szef/')
->exclude('templates/colorbox/')
->exclude('templates/compile/')
->exclude('templates/rating/')
->exclude('templates/jpgraph/')
->exclude('templates/htmlpurifier/')
->exclude('templates/sentry-php-master/')
->exclude('templates/piwik-php-tracker/')
->notPath('templates/GoogleMap.php')
->notPath('templates/PasswordHash.php')
->notPath('templates/JSMin.php')
->notPath('/szef/smarty.php')
->in(__DIR__)
;
return PhpCsFixer\Config::create()
->setRules(array(
'@Symfony' => true,
'no_closing_tag' => true,
'yoda_style' => false,
))
->setFinder($finder)
;
} elseif (class_exists('Symfony\CS\Finder\DefaultFinder')) { // PHP-CS-Fixer 1.x
$finder = Symfony\CS\Finder::create()
->exclude('szef')
->exclude('templates/colorbox')
->exclude('templates/compile')
->exclude('templates/rating')
->exclude('templates/jpgraph')
->exclude('templates/htmlpurifier')
->exclude('templates/sentry-php-master')
->exclude('templates/piwik-php-tracker')
->notPath('templates/GoogleMap.php')
->notPath('templates/PasswordHash.php')
->notPath('templates/JSMin.php')
->notPath('/szef/smarty.php')
->in(__DIR__)
;
return Symfony\CS\Config::create()
->fixers(array('php_closing_tag'))
->finder($finder)
;
}