-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
53 lines (50 loc) · 1.71 KB
/
.php-cs-fixer.dist.php
File metadata and controls
53 lines (50 loc) · 1.71 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
52
53
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('node_modules')
->exclude('vendor')
->exclude('var')
->in(__DIR__);
$config = new PhpCsFixer\Config();
$config->setRules([
'@PSR12' => true,
'strict_param' => true,
'array_syntax' => ['syntax' => 'short'],
'@Symfony' => true,
'full_opening_tag' => true,
'declare_strict_types' => true,
'align_multiline_comment' => true,
'array_indentation' => true,
'array_push' => true,
'backtick_to_shell_exec' => true,
'binary_operator_spaces' => true,
'blank_line_after_namespace' => true,
'blank_line_after_opening_tag' => true,
'braces' => true,
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'compact_nullable_typehint' => true,
'concat_space' => true,
'constant_case' => true,
'date_time_immutable' => true,
'dir_constant' => true,
'@DoctrineAnnotation' => true,
'ereg_to_preg' => true,
'encoding' => true,
'heredoc_indentation' => true,
'heredoc_to_nowdoc' => true,
'is_null' => true,
'mb_str_functions' => true,
'method_chaining_indentation' => true,
'multiline_comment_opening_closing' => true,
'native_function_invocation' => false,
'native_function_type_declaration_casing' => true,
'native_function_casing' => true,
'native_constant_invocation' => false,
'strict_comparison' => true,
'ternary_to_null_coalescing' => true,
'use_arrow_functions' => true
])
->setIndent(" ")
->setLineEnding("\n")
->setFinder($finder);
return $config;