-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
39 lines (37 loc) · 1.38 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
<?php
namespace PhpCsFixer;
return Config::create()
->setRules([
'@PSR1' => true,
'@PSR2' => true,
'@Symfony' => true,
'binary_operator_spaces' => [
'align_double_arrow' => true,
'align_equals' => true,
],
'combine_consecutive_unsets' => true,
'concat_with_spaces' => true,
'concat_without_spaces' => false,
'dir_constant' => true,
'linebreak_after_opening_tag' => true,
'modernize_types_casting' => true,
'no_multiline_whitespace_before_semicolons' => true,
'no_php4_constructor' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'phpdoc_no_package' => false,
'phpdoc_order' => true,
'pre_increment' => false,
'psr0' => true,
'psr4' => true,
'random_api_migration' => true,
'semicolon_after_instruction' => true,
'short_array_syntax' => true,
'simplified_null_return' => true,
])->setFinder(
Finder::create()
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
);