-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.php_cs.dist
36 lines (34 loc) · 1.08 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
34
35
36
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('bin')
->exclude('node_modules')
->exclude('public/bundles')
->exclude('var')
->exclude('vendor')
->in(__DIR__)
;
return PhpCsFixer\Config::create()
->setRules([
'@PSR1' => true,
'@PSR2' => true,
'@Symfony' => true,
'@PhpCsFixer' => true,
'array_syntax' => ['syntax' => 'long'],
'function_typehint_space' => true,
'is_null' => false,
'method_argument_space' => true,
'method_chaining_indentation' => false,
'multiline_whitespace_before_semicolons' => false,
'no_null_property_initialization' => false,
'no_superfluous_phpdoc_tags' => false,
'ordered_class_elements' => false,
'ordered_imports' => false,
'return_assignment' => false,
'simplified_null_return' => false,
'simple_to_complex_string_variable' => true,
'strict_param' => false,
'ternary_to_null_coalescing' => false,
'trailing_comma_in_multiline_array' => false,
])
->setFinder($finder)
;