|
16 | 16 | <exclude name="Squiz.Commenting.FunctionComment"/> |
17 | 17 | <exclude name="Squiz.PHP.Heredoc.NotAllowed"/> |
18 | 18 | <exclude name="Squiz.WhiteSpace.FunctionSpacing.Before"/> |
| 19 | + <exclude name="SlevomatCodingStandard.Variables.UnusedVariable.UnusedVariable"/> |
19 | 20 | </rule> |
20 | 21 | <rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses"> |
21 | 22 | <properties> |
|
51 | 52 | </rule> |
52 | 53 | <rule ref="SlevomatCodingStandard.Functions.UnusedInheritedVariablePassedToClosure.UnusedInheritedVariable"/> |
53 | 54 | <rule ref="SlevomatCodingStandard.Exceptions.ReferenceThrowableOnly.ReferencedGeneralException"/> |
| 55 | + <rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator"/> |
| 56 | + <rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceEqualOperator"/> |
54 | 57 | <rule ref="SlevomatCodingStandard.Variables.UnusedVariable.UnusedVariable"/> |
55 | 58 | <rule ref="SlevomatCodingStandard.ControlStructures.AssignmentInCondition"/> |
56 | 59 | <rule ref="SlevomatCodingStandard.ControlStructures.EarlyExit"> |
|
67 | 70 |
|
68 | 71 | </properties> |
69 | 72 | </rule> |
| 73 | + <rule ref="SlevomatCodingStandard.Classes.ClassMemberSpacing"> |
| 74 | + <properties> |
| 75 | + <property name="linesCountBetweenMembers" value="1"/> |
| 76 | + </properties> |
| 77 | + </rule> |
| 78 | + <rule ref="SlevomatCodingStandard.Classes.MethodSpacing"> |
| 79 | + <properties> |
| 80 | + <property name="minLinesCount" value="1"/> |
| 81 | + <property name="maxLinesCount" value="1"/> |
| 82 | + </properties> |
| 83 | + </rule> |
70 | 84 | <rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference"/> |
71 | 85 | <rule ref="SlevomatCodingStandard.Functions.StaticClosure"/> |
72 | 86 | <rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators"/> |
|
76 | 90 | <rule ref="SlevomatCodingStandard.Classes.TraitUseSpacing"/> |
77 | 91 | <rule ref="SlevomatCodingStandard.Variables.UnusedVariable"/> |
78 | 92 | <rule ref="SlevomatCodingStandard.Variables.UselessVariable"/> |
79 | | - <!-- Disallow trailing comma in function calls, since this breaks on PHP < 7.3 --> |
80 | | - <rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInCall"/> |
| 93 | + <rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInCall"> |
| 94 | + <properties> |
| 95 | + <property name="onlySingleLine" value="true"/> |
| 96 | + </properties> |
| 97 | + </rule> |
| 98 | + <rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall"/> |
81 | 99 | <!-- Disallow trailing comma in closure use and function declarations, since this breaks on PHP < 8.0 --> |
82 | 100 | <rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInClosureUse" /> |
83 | 101 | <rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInDeclaration" /> |
|
119 | 137 | <property name="enable" value="true"/> |
120 | 138 | </properties> |
121 | 139 | </rule> |
122 | | - <rule ref="SlevomatCodingStandard.Functions.RequireArrowFunction"> |
123 | | - <properties> |
124 | | - <property name="enable" value="true"/> |
125 | | - </properties> |
126 | | - </rule> |
| 140 | + <rule ref="SlevomatCodingStandard.Functions.RequireArrowFunction"/> |
127 | 141 | <rule ref="SlevomatCodingStandard.Functions.ArrowFunctionDeclaration"/> |
128 | 142 | <exclude-pattern>tests/*/data</exclude-pattern> |
129 | 143 | <exclude-pattern>tests/*/data-attributes</exclude-pattern> |
|
0 commit comments