-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
31 lines (29 loc) · 988 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
28
29
30
31
<?php
$finder = PhpCsFixer\Finder::create()
->in([__DIR__])
->exclude(['vendor', 'var'])
->notPath('/cache/')
;
return PhpCsFixer\Config::create()
->setFinder($finder)
->setRules([
'@PSR2' => true,
'@Symfony' => true,
'psr0' => false,
'array_syntax' => ['syntax' => 'short'],
'list_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'none'],
'blank_line_after_opening_tag' => false,
'lowercase_cast' => true,
'lowercase_constants' => true,
'lowercase_keywords' => true,
'no_trailing_comma_in_singleline_array' => true,
'no_unused_imports' => true,
'not_operator_with_successor_space' => true,
'ordered_imports' => true,
'declare_strict_types' => true,
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
'native_function_invocation' => true,
'no_superfluous_phpdoc_tags' => false,
])
;