-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
118 lines (100 loc) · 4.34 KB
/
Copy pathphpcs.xml
File metadata and controls
118 lines (100 loc) · 4.34 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?xml version="1.0"?>
<ruleset name="PHP_CodeSniffer">
<description>The coding standard for RealPayment.</description>
<!--
<file>autoload.php</file>
<file>bin</file>
<file>scripts</file>
<file>src</file>
<file>tests</file>
-->
<exclude-pattern>*/Standards/*/Tests/*\.(inc|css|js)</exclude-pattern>
<!--arg name="basepath" value="."/-->
<!--arg name="colors" /-->
<arg name="parallel" value="75" />
<arg value="np"/>
<!-- Don't hide tokenizer exceptions -->
<rule ref="Internal.Tokenizer.Exception">
<type>error</type>
</rule>
<rule ref="Generic.Files.ByteOrderMark" />
<!-- Line Ending Rule Section -->
<!-- uncomment this if you are on a unix system ( mac/linux ) -->
<rule ref="Generic.Files.LineEndings" />
<!-- uncomment this if you are on windows and do not want to get errors on every file -->
<!-- <rule ref="Generic.Files.LineEndings" >
<properties>
<property name="eolChar" value="\r\n" />
</properties>
</rule> -->
<!-- -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="140" />
<property name="absoluteLineLimit" value="180" />
</properties>
</rule>
<rule ref="Generic.Formatting.DisallowMultipleStatements" />
<rule ref="Generic.Functions.FunctionCallArgumentSpacing" />
<!--rule ref="Generic.NamingConventions.UpperCaseConstantName" /-->
<rule ref="Generic.PHP.DisallowShortOpenTag" />
<rule ref="Generic.PHP.LowerCaseConstant" />
<rule ref="Generic.PHP.LowerCaseKeyword" />
<rule ref="Generic.WhiteSpace.DisallowTabIndent" />
<rule ref="Generic.WhiteSpace.ScopeIndent" />
<rule ref="PEAR.Functions.ValidDefaultValue"/>
<!-- PEAR uses warnings for inline control structures, so switch back to errors -->
<rule ref="Generic.ControlStructures.InlineControlStructure">
<properties>
<property name="error" value="true"/>
</properties>
</rule>
<!-->
<rule ref="PSR1.Classes.ClassDeclaration" />
<!-->
<rule ref="PSR1.Files.SideEffects" />
<rule ref="PSR1.Methods.CamelCapsMethodName" />
<!-->
<!-->
<rule ref="PSR2.Classes.ClassDeclaration" />
<rule ref="PSR2.Classes.PropertyDeclaration" />
<rule ref="PSR2.ControlStructures.ControlStructureSpacing" >
<properties>
<property name="requiredSpacesAfterOpen" value="1" />
<property name="requiredSpacesBeforeClose" value="1" />
</properties>
</rule>
<rule ref="PSR2.ControlStructures.ElseIfDeclaration" />
<rule ref="PSR2.ControlStructures.SwitchDeclaration" />
<rule ref="PSR2.Files.ClosingTag" />
<!--rule ref="PSR2.Files.EndFileNewline" /-->
<rule ref="PSR2.Methods.FunctionCallSignature" />
<rule ref="PSR2.Methods.FunctionClosingBrace" />
<rule ref="PSR2.Methods.MethodDeclaration" />
<rule ref="PSR2.Namespaces.NamespaceDeclaration" />
<rule ref="PSR2.Namespaces.UseDeclaration" />
<rule ref="Squiz.Classes.ValidClassName" />
<rule ref="Squiz.ControlStructures.ControlSignature" />
<rule ref="Squiz.ControlStructures.ForEachLoopDeclaration" />
<rule ref="Squiz.ControlStructures.ForLoopDeclaration">
<exclude name="Squiz.ControlStructures.ForLoopDeclaration.SpacingAfterOpen" />
<exclude name="Squiz.ControlStructures.ForLoopDeclaration.SpacingBeforeClose" />
<exclude name="Squiz.ControlStructures.ForEachLoopDeclaration.SpaceAfterOpen" />
<exclude name="Squiz.ControlStructures.ForEachLoopDeclaration.SpaceBeforeClose" />
</rule>
<rule ref="Squiz.ControlStructures.LowercaseDeclaration" />
<rule ref="Squiz.Functions.FunctionDeclaration" />
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing" />
<rule ref="Squiz.Functions.LowercaseFunctionKeywords" />
<rule ref="Squiz.Functions.MultiLineFunctionDeclaration" />
<rule ref="Squiz.Scope.MethodScope" />
<rule ref="Squiz.WhiteSpace.ScopeClosingBrace" />
<rule ref="Squiz.WhiteSpace.ScopeKeywordSpacing" />
<!-- Uncomment to check whitespace and multiple blank lines
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
<properties>
<property name="ignoreBlankLines" value="true" />
</properties>
</rule>
-->
</ruleset>