-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs
56 lines (55 loc) · 2.33 KB
/
.php_cs
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
54
55
56
<?php
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules(array(
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces'=> ['align_double_arrow' => true, 'align_equals' => true],
'combine_consecutive_unsets' => true,
'concat_space' => ['spacing' => 'one'],
'declare_strict_types' => true,
'dir_constant' => true,
'ereg_to_preg' => true,
'heredoc_to_nowdoc' => true,
'linebreak_after_opening_tag' => true,
'list_syntax' => ['syntax' => 'short'],
'modernize_types_casting' => false,
'no_empty_comment' => false, // non-compliance in Laravel generated files
'no_multiline_whitespace_before_semicolons' => true,
'no_php4_constructor' => true,
'no_short_echo_tag' => true,
'no_unreachable_default_argument_value' => true,
'no_useless_return' => true,
'no_whitespace_in_blank_line' => true,
'not_operator_with_space' => false,
'ordered_class_elements' => true,
'ordered_imports' => true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_align' => false, // param alignment inconsistent with PhpStorm
'phpdoc_annotation_without_dot' => false,
'phpdoc_no_alias_tag' => false,
'phpdoc_no_empty_return' => false, // non-compliance in Laravel generated files
'phpdoc_no_package' => false, // non-compliance in Laravel generated files
'phpdoc_order' => true,
'phpdoc_separation' => false, // non-compliance in Laravel generated files
'phpdoc_summary' => false, // no need to add dot at the end of short description
'phpdoc_to_comment' => false, // allow use of docblock comment in function body
'php_unit_construct' => true,
'php_unit_strict' => true,
'pre_increment' => false,
'simplified_null_return' => false,
'strict_comparison' => true,
'strict_param' => true,
))
->setFinder(
PhpCsFixer\Finder::create()
->exclude('src/Cli/Commands')
->exclude('src/Support')
->exclude('vendor')
->notPath('.phpstorm.meta.php')
->notPath('_ide_helper.php')
->notPath('server.php')
->in(__DIR__)
)
;