-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php_cs.dist
More file actions
51 lines (40 loc) · 1.36 KB
/
.php_cs.dist
File metadata and controls
51 lines (40 loc) · 1.36 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = Finder::create()
->exclude('var')
->exclude('spec')
->in(__DIR__)
;
return Config::create()
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'linebreak_after_opening_tag' => true,
'declare_strict_types' => true,
'align_multiline_comment' => ['comment_type' => 'all_multiline'],
'multiline_comment_opening_closing' => true,
'phpdoc_inline_tag' => false,
'array_syntax' => ['syntax' => 'short'],
'list_syntax' => ['syntax' => 'short'],
'explicit_string_variable' => true,
'heredoc_to_nowdoc' => true,
'no_unreachable_default_argument_value' => true,
'no_superfluous_elseif' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'compact_nullable_typehint' => true,
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'native_function_invocation' => true,
'strict_comparison' => true,
'strict_param' => true,
'ternary_to_null_coalescing' => true,
'method_chaining_indentation' => true,
])
->setFinder($finder)
->setRiskyAllowed(true)
->setCacheFile(__DIR__.'/var/cache/.php_cs.cache')
;