forked from artefactual/atom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
28 lines (26 loc) · 827 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
<?php
// Exclude cache folder (vendor is already excluded)
// and model classes generated with Propel.
$finder = PhpCsFixer\Finder::create()
->exclude('.coverage')
->exclude('cache')
->notPath('#/model/om/#')
->notPath('#/model/map/#')
->in(__DIR__)
;
// Indentation inside switch blocks and some multiline
// elements (control statements, assignments, strings)
// is not considered. See:
// https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/776
// https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/4502
//
// PhpCsFixer's method_argument_space default value,
// which includes ensure_fully_multiline, causes
// inconsistencies in templates.
return PhpCsFixer\Config::create()
->setRules([
'@PhpCsFixer' => true,
'method_argument_space' => true,
])
->setFinder($finder)
;