forked from Gemorroj/Archive7z
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs.dist
27 lines (25 loc) · 856 Bytes
/
.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
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('fixtures')
->in(['src', 'tests']);
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'compact_nullable_typehint' => true,
'linebreak_after_opening_tag' => true,
'list_syntax' => ['syntax' => 'short'],
// 'mb_str_functions' => true,
'native_function_invocation' => true,
'no_null_property_initialization' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
'phpdoc_order' => true,
'strict_comparison' => true,
])
->setRiskyAllowed(true)
->setFinder($finder)
;