-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
37 lines (34 loc) · 1.52 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
<?xml version="1.0"?>
<ruleset name="PSR">
<description>CodeSniffer for PSR-0, PSR-1 and PSR-2</description>
<exclude-pattern type="relative">^vendor\/</exclude-pattern>
<exclude-pattern type="relative">^test\/</exclude-pattern>
<exclude-pattern type="relative">^build\/</exclude-pattern>
<rule ref="Generic.ControlStructures.InlineControlStructure"/>
<rule ref="Generic.Formatting.SpaceAfterCast"/>
<rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
<rule ref="Generic.WhiteSpace.ScopeIndent"/>
<rule ref="Generic.PHP.LowerCaseConstant"/>
<rule ref="Squiz.Classes.ValidClassName"/>
<rule ref="Squiz.Classes.LowercaseClassKeywords"/>
<rule ref="Squiz.ControlStructures.ControlSignature"/>
<rule ref="Squiz.ControlStructures.ForEachLoopDeclaration"/>
<rule ref="Squiz.ControlStructures.ForLoopDeclaration"/>
<rule ref="Squiz.ControlStructures.LowercaseDeclaration"/>
<rule ref="Squiz.Scope.MemberVarScope"/>
<rule ref="Squiz.Scope.MethodScope"/>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="110"/>
<property name="absoluteLineLimit" value="120"/>
</properties>
</rule>
<rule ref="Generic.Files.LineEndings">
<properties>
<property name="eolChar" value="\n"/>
</properties>
</rule>
<rule ref="Zend.Files.ClosingTag"/>
</ruleset>