Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
Latest commit
97 lines (91 loc) · 4.3 KB
/
Copy pathphpcs.xml
File metadata and controls
97 lines (91 loc) · 4.3 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?xml version="1.0"?>
<rulesetname="tiny-blocks">
<description>Code style for the tiny-blocks library.</description>
<file>src</file>
<file>tests</file>
<ruleref="PSR12"/>
<ruleref="Squiz.Arrays.ArrayBracketSpacing"/>
<ruleref="Squiz.ControlStructures.ControlSignature"/>
<ruleref="Squiz.ControlStructures.ElseIfDeclaration"/>
<ruleref="Squiz.Formatting.OperatorBracket"/>
<ruleref="Squiz.Functions.FunctionDeclarationArgumentSpacing">
<properties>
<propertyname="equalsSpacing"value="1"/>
</properties>
</rule>
<ruleref="Squiz.Scope.MethodScope"/>
<ruleref="Squiz.WhiteSpace.ControlStructureSpacing"/>
<ruleref="Squiz.WhiteSpace.FunctionSpacing">
<properties>
<propertyname="spacing"value="1"/>
<propertyname="spacingBeforeFirst"value="0"/>
<propertyname="spacingAfterLast"value="0"/>
</properties>
</rule>
<ruleref="Squiz.WhiteSpace.SuperfluousWhitespace"/>
<ruleref="Generic.Arrays.DisallowLongArraySyntax"/>
<ruleref="Generic.CodeAnalysis.EmptyStatement"/>
<ruleref="Generic.ControlStructures.InlineControlStructure"/>
<ruleref="Generic.Formatting.DisallowMultipleStatements"/>
<ruleref="Generic.Metrics.CyclomaticComplexity">
<properties>
<propertyname="complexity"value="10"/>
<propertyname="absoluteComplexity"value="20"/>
</properties>
</rule>
<ruleref="Generic.Metrics.NestingLevel"/>
<ruleref="Generic.NamingConventions.ConstructorName"/>
<ruleref="Generic.PHP.DeprecatedFunctions"/>
<ruleref="Generic.PHP.LowerCaseKeyword"/>
<ruleref="Generic.Strings.UnnecessaryStringConcat">
<properties>
<propertyname="allowMultiline"value="true"/>
</properties>
</rule>
<ruleref="PSR2.Classes.PropertyDeclaration"/>
<ruleref="PSR2.Files.EndFileNewline"/>
<ruleref="PSR2.Methods.MethodDeclaration"/>
<ruleref="SlevomatCodingStandard.Classes.ClassStructure">
<properties>
<propertyname="groups"type="array">
<elementvalue="uses"/>
<elementvalue="public constants"/>
<elementvalue="protected constants"/>
<elementvalue="private constants"/>
<elementvalue="enum cases"/>
<elementvalue="public properties, public static properties"/>
<elementvalue="protected properties, protected static properties"/>
<elementvalue="private properties, private static properties"/>
<elementvalue="constructor, destructor"/>
<elementvalue="all public methods, all protected methods, all private methods, static constructors"/>
<elementvalue="magic methods"/>
</property>
</properties>
</rule>
<ruleref="SlevomatCodingStandard.Classes.ModernClassNameReference"/>
<ruleref="SlevomatCodingStandard.Complexity.Cognitive"/>
<ruleref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator"/>
<ruleref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses"/>
<ruleref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly"/>
<ruleref="SlevomatCodingStandard.Namespaces.UnusedUses">
<properties>
<propertyname="searchAnnotations"value="true"/>
</properties>
</rule>
<ruleref="SlevomatCodingStandard.Namespaces.UseFromSameNamespace"/>
<ruleref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<propertyname="spacesCountAroundEqualsSign"value="0"/>
</properties>
</rule>
<ruleref="SlevomatCodingStandard.TypeHints.ParameterTypeHint">
<excludename="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification"/>
</rule>
<ruleref="SlevomatCodingStandard.TypeHints.PropertyTypeHint">
<excludename="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification"/>
</rule>
<ruleref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
<excludename="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification"/>
</rule>
<ruleref="SlevomatCodingStandard.Variables.UnusedVariable"/>
</ruleset>