-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathphpcs.xml
More file actions
51 lines (43 loc) · 1.83 KB
/
phpcs.xml
File metadata and controls
51 lines (43 loc) · 1.83 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
<?xml version="1.0"?>
<ruleset name="Marko Framework Coding Standard">
<description>Marko Framework Coding Standard</description>
<file>packages</file>
<file>demo/app</file>
<file>demo/modules</file>
<!-- Exclude vendor directories -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/.phpunit.cache/*</exclude-pattern>
<arg name="colors"/>
<arg value="sp"/>
<!-- Require multiline for function/method calls when line is long -->
<rule ref="SlevomatCodingStandard.Functions.RequireMultiLineCall">
<properties>
<property name="minLineLength" value="120"/>
</properties>
</rule>
<!-- Force multiline method signatures when 2+ parameters -->
<rule ref="SlevomatCodingStandard.Classes.RequireMultiLineMethodSignature">
<properties>
<property name="minParametersCount" value="2"/>
</properties>
</rule>
<!-- Require trailing commas in multiline -->
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration"/>
<!-- Disallow useless parentheses -->
<rule ref="SlevomatCodingStandard.PHP.UselessParentheses">
<properties>
<property name="ignoreComplexTernaryConditions" value="true"/>
</properties>
</rule>
<!-- Require blank line before return -->
<rule ref="SlevomatCodingStandard.ControlStructures.JumpStatementsSpacing">
<properties>
<property name="linesCountBeforeWhenFirstInCaseOrDefault" value="0"/>
<property name="linesCountAfterWhenLastInCaseOrDefault" value="0"/>
<property name="linesCountAfterWhenLastInLastCaseOrDefault" value="0"/>
<property name="jumpStatements" type="array">
<element value="return"/>
</property>
</properties>
</rule>
</ruleset>