-
Notifications
You must be signed in to change notification settings - Fork 14
/
.php_cs_config.php
38 lines (36 loc) · 1.31 KB
/
.php_cs_config.php
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
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
->in(__DIR__ . '/tests')
;
return PhpCsFixer\Config::create()
->setFinder($finder)
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'psr4' => true,
'phpdoc_indent' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_before_statement' => false,
'strict_comparison' => true,
'strict_param' => true,
'no_null_property_initialization' => true,
'yoda_style' => false,
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
'ordered_class_elements' => [
'use_trait',
'constant_public',
'constant_protected',
'constant_private',
'property_public',
'property_protected',
'property_private',
'construct',
'destruct',
'magic',
'phpunit',
'method_public',
'method_protected',
'method_private'
],
]);