-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.php_cs.dist
33 lines (31 loc) · 1.03 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
<?php
$finder = PhpCsFixer\Finder::create()
->in([__DIR__])
->notName('template.parser.php')
->notPath('/tests\/Fixtures\/.*\/cache/')
->notPath('vendor')
->notPath('var')
;
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,
'native_function_invocation' => true,
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
'no_superfluous_phpdoc_tags' => false,
])
;