Skip to content

Commit daa419d

Browse files
committed
Make sure all indents are 2 spaces
1 parent 88d99bf commit daa419d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

phpcs.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,29 @@
44
Originally from https://gist.github.com/Ovsyanka/e2ab2ff76e7c0d7e75a1e4213a03ff95
55
PSR2 with changes:
66
- bracers on end of line instead new line
7+
- two space indentation
78
</description>
89
<rule ref="PSR2">
910
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine" />
1011
<exclude name="PSR2.Classes.ClassDeclaration.OpenBraceNewLine" />
1112
<exclude name="Generic.WhiteSpace.DisallowTabIndent"/>
1213
</rule>
14+
<arg name="tab-width" value="2"/>
1315
<rule ref="Generic.WhiteSpace.ScopeIndent">
1416
<properties>
1517
<property name="indent" value="2"/>
1618
</properties>
1719
</rule>
20+
<rule ref="Squiz.Functions.MultiLineFunctionDeclaration">
21+
<properties>
22+
<property name="indent" value="2" />
23+
</properties>
24+
</rule>
25+
<rule ref="PSR2.Methods.FunctionCallSignature">
26+
<properties>
27+
<property name="indent" value="2" />
28+
</properties>
29+
</rule>
1830
<rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie" />
1931
<rule ref="Generic.Classes.OpeningBraceSameLine"/>
2032
</ruleset>

0 commit comments

Comments
 (0)