-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
97 lines (81 loc) · 3.88 KB
/
phpcs.xml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?xml version="1.0"?>
<ruleset name="Alex Standard">
<description>Alex PHP Code Standard</description>
<config name="installed_paths" value="../../slevomat/coding-standard"/>
<file>app</file>
<file>config</file>
<file>tests</file>
<file>routes</file>
<rule ref="PSR2"/>
<rule ref="Generic.Files.LineEndings">
<properties>
<property name="eolChar" value="\n"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma"/>
<rule ref="SlevomatCodingStandard.Namespaces.UseDoesNotStartWithBackslash"/>
<rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly"/>
<rule ref="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue"/>
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing"/>
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing"/>
<rule ref="SlevomatCodingStandard.TypeHints.LongTypeHints"/>
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property name="newlinesCountBetweenOpenTagAndDeclare" value="2"/>
<property name="newlinesCountAfterDeclare" value="2"/>
<property name="spacesCountAroundEqualsSign" value="0"/>
</properties>
<include-pattern>*/app/*</include-pattern>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint">
<exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification"/>
<properties>
<property name="enableMixedTypeHint" value="false"/>
</properties>
<exclude-pattern>*/tests/ClientTestCase.php</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint">
<exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification"/>
<properties>
<property name="enableMixedTypeHint" value="false"/>
</properties>
<include-pattern>*/app/Domain/*</include-pattern>
<include-pattern>*/app/Events/*</include-pattern>
<include-pattern>*/app/Http/*</include-pattern>
<include-pattern>*/app/Listeners/*</include-pattern>
<include-pattern>*/app/Mail/*</include-pattern>
<include-pattern>*/app/Notifications/*</include-pattern>
<include-pattern>*/app/Policies/*</include-pattern>
<include-pattern>*/app/Repositories/*</include-pattern>
<include-pattern>*/app/Rules/*</include-pattern>
<include-pattern>*/app/Services/*</include-pattern>
<exclude-pattern>*/app/Http/Kernel.php</exclude-pattern>
<exclude-pattern>*/app/Http/Middleware/*</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification"/>
<properties>
<property name="enableMixedTypeHint" value="false"/>
</properties>
<include-pattern>*/app/*</include-pattern>
<exclude-pattern>*app/Http/*</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.UselessConstantTypeHint" />
<rule ref="SlevomatCodingStandard.Exceptions.ReferenceThrowableOnly" />
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses" />
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall">
<properties>
<property name="enabled" value="true"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration">
<properties>
<property name="enabled" value="true"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
<properties>
<property name="searchAnnotations" value="true"/>
</properties>
</rule>
</ruleset>