-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml
More file actions
32 lines (27 loc) · 1.16 KB
/
phpcs.xml
File metadata and controls
32 lines (27 loc) · 1.16 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
<?xml version="1.0"?>
<ruleset name="PHP Coding Standard">
<!-- Default directory to check if there are no directories argurment -->
<file>app</file>
<file>config</file>
<file>resources</file>
<file>modules</file>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/migrations/*</exclude-pattern>
<!-- Add PSR1 standard -->
<rule ref="PSR1"></rule>
<!-- Add PSR2 standard -->
<rule ref="PSR2"></rule>
<rule ref="PEAR.Commenting.FunctionComment"></rule>
<rule ref="Generic.Commenting.DocComment"></rule>
<rule ref="Generic.Strings.UnnecessaryStringConcat"/>
<rule ref="Generic.PHP.LowerCaseConstant"/>
<rule ref="Generic.PHP.LowerCaseKeyword"/>
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
<rule ref="Generic.PHP.DeprecatedFunctions"/>
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
<rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
<rule ref="Generic.Formatting.SpaceAfterCast"/>
<rule ref="Generic.Formatting.DisallowMultipleStatements"/>
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
<rule ref="Generic.WhiteSpace.ScopeIndent"/>
</ruleset>