-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
33 lines (31 loc) · 905 Bytes
/
.php-cs-fixer.php
File metadata and controls
33 lines (31 loc) · 905 Bytes
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
<?php
$finder = PhpCsFixer\Finder::create()
->in(["config", "database", "src", "tests"]);
$config = new PhpCsFixer\Config();
return $config->setRules([
'@Symfony' => true,
'ordered_class_elements' => [
'order' => [
'case',
'use_trait',
'constant_public',
'constant_protected',
'constant_private',
'property_public_static',
'property_protected_static',
'property_private_static',
'method_public_static',
'method_protected_static',
'method_private_static',
'property_public',
'property_protected',
'property_private',
'construct',
'destruct',
'magic',
'method_public',
'method_protected',
'method_private'
]
]
])->setFinder($finder);