forked from indentno/phpunit-pretty-print
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
27 lines (24 loc) · 812 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('tests/Fixtures')
->in(__DIR__);
$config = PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'array_indentation' => true,
'trailing_comma_in_multiline_array' => true,
'method_chaining_indentation' => true,
'binary_operator_spaces' => true,
'strict_comparison' => true,
'standardize_not_equals' => true,
'strict_param' => true,
'concat_space' => ['spacing' => 'one'],
'array_syntax' => ['syntax' => 'short'],
'no_unused_imports' => true,
'no_useless_else' => true,
'blank_line_before_statement' => true,
'whitespace_after_comma_in_array' => true,
])
->setFinder($finder);
return $config;