forked from serpapi/serpapi-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
26 lines (22 loc) · 818 Bytes
/
Copy pathphpcs.xml
File metadata and controls
26 lines (22 loc) · 818 Bytes
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
<?xml version="1.0"?>
<ruleset name="SerpApi PHP">
<description>PSR-12 with 2-space indentation</description>
<file>src</file>
<file>tests</file>
<arg name="colors"/>
<arg value="sp"/>
<rule ref="PSR12">
<!-- Project uses 2-space indent instead of PSR-12's 4 spaces. -->
<exclude name="Generic.WhiteSpace.ScopeIndent"/>
<exclude name="PSR2.Methods.FunctionCallSignature.Indent"/>
<exclude name="PSR2.Methods.FunctionCallSignature.CloseBracketLine"/>
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.Indent"/>
<exclude name="PEAR.Functions.FunctionDeclaration.Indent"/>
</rule>
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="indent" value="2"/>
<property name="exact" value="true"/>
</properties>
</rule>
</ruleset>