forked from 68publishers/asset
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
38 lines (36 loc) · 1 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
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
;
return PhpCsFixer\Config::create()
->setUsingCache(FALSE)
->setIndent("\t")
->setRules([
'@PSR2' => TRUE,
'array_syntax' => ['syntax' => 'short'],
'trailing_comma_in_multiline_array' => true,
'constant_case' => [
'case' => 'upper',
],
'declare_strict_types' => TRUE,
'phpdoc_align' => TRUE,
'blank_line_after_opening_tag' => TRUE,
'blank_line_before_statement' => [
'statements' => ['break', 'continue', 'declare', 'return'],
],
'blank_line_after_namespace' => TRUE,
'single_blank_line_before_namespace' => TRUE,
'return_type_declaration' => [
'space_before' => 'none',
],
'ordered_imports' => [
'sort_algorithm' => 'length',
],
'no_unused_imports' => TRUE,
'single_line_after_imports' => TRUE,
'no_leading_import_slash' => TRUE,
])
->setRiskyAllowed(TRUE)
->setFinder($finder)
;