This repository has been archived by the owner on May 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
59 lines (57 loc) · 1.61 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
57
58
59
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
return Config::create()
->setUsingCache(true)
->setFinder(
Finder::create()
->exclude([
'vendor',
])
->in(__DIR__)
)
->setRules([
'@PSR2' => true,
'@Symfony' => true,
'class_definition' => [
'multiLineExtendsEachSingleLine' => true,
],
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'align_double_arrow' => false,
'align_equals' => false,
],
'concat_space' => [
'spacing' => 'one',
],
'general_phpdoc_annotation_remove' => [
'author',
'package',
],
'no_multiline_whitespace_before_semicolons' => true,
'no_null_property_initialization' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => [
'order' => [
'use_trait',
'constant_public',
'constant_protected',
'constant_private',
'property_public',
'property_protected',
'property_private',
'construct'
]
],
'ordered_imports' => [
'sortAlgorithm' => 'alpha'
],
'phpdoc_order' => true,
'phpdoc_types_order' => [
'null_adjustment' => 'always_last'
],
'phpdoc_single_line_var_spacing' => true,
'phpdoc_annotation_without_dot' => true,
'yoda_style' => false
]);