forked from CodeForPhilly/laddr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
39 lines (35 loc) · 1.06 KB
/
.php_cs.dist
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
$finder = PhpCsFixer\Finder::create()
//->exclude('somedir')
->in(__DIR__)
;
return PhpCsFixer\Config::create()
->setRules([
/**
* Tap the most thoroughly-considered and
* widely-adopted presets for minimizing errors
*/
'@PSR1' => true,
'@PSR2' => true,
// '@PSR12' => true, // not supported yet
'@Symfony' => true,
/**
* Apply a consistent order to class members.
*
* https://mlocati.github.io/php-cs-fixer-configurator/#version:2.16|fixer:ordered_class_elements
*
* Compatible with @Symfony
*/
'ordered_class_elements' => true,
/**
* Symfony only cares about blank lines before returns,
* but phpcsfixer's default includes a few more cases.
*
* https://mlocati.github.io/php-cs-fixer-configurator/#version:2.16|fixer:blank_line_before_statement
*
* Compatible with @Symfony
*/
'blank_line_before_statement' => true,
])
->setFinder($finder)
;