forked from ITECOMMPAY/paymentpage-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
39 lines (29 loc) · 1.22 KB
/
phpcs.xml.dist
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
<?xml version="1.0"?>
<ruleset name="SDK Coding Standard" namespace="SDK\CS\Standard">
<description>Coding standard for SDK</description>
<file>.</file>
<exclude-pattern>*/vendor/*</exclude-pattern>
<arg name="extensions" value="php"/>
<arg name="report" value="summary"/>
<arg name="colors"/>
<arg value="sp"/>
<rule ref="PSR2" />
<rule ref="Generic.Files.LineLength.TooLong" />
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
<rule ref="Squiz.Commenting.InlineComment.NoSpaceBefore" />
<rule ref="Squiz.WhiteSpace.MemberVarSpacing.Incorrect" />
<rule ref="Squiz.WhiteSpace.FunctionOpeningBraceSpace.SpacingAfter" />
<rule ref="Squiz.Strings.DoubleQuoteUsage.NotRequired" />
<rule ref="Squiz.Arrays.ArrayDeclaration.SpaceInEmptyArray" />
<rule ref="Squiz.Arrays.ArrayDeclaration.NoCommaAfterLast" />
<rule ref="Squiz.Operators.ComparisonOperatorUsage.NotAllowed">
<type>warning</type>
<severity>2</severity>
</rule>
<rule ref="Squiz.WhiteSpace.FunctionSpacing" >
<properties>
<property name="spacing" value="1" />
<property name="spacingAfterLast" value="0" />
</properties>
</rule>
</ruleset>