|
10 | 10 | <exclude-pattern>*</exclude-pattern> |
11 | 11 | </rule> |
12 | 12 | <rule ref="PSR12.Namespaces.CompoundNamespaceDepth"/> |
13 | | - <rule ref="PSR12.Functions.NullableTypeDeclaration" /> |
| 13 | + <rule ref="PSR12.Functions.NullableTypeDeclaration"/> |
14 | 14 |
|
15 | 15 | <rule ref="Generic.Commenting.Todo"/> |
16 | 16 | <rule ref="Generic.PHP.LowerCaseKeyword"/> |
|
20 | 20 | <rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/> |
21 | 21 | <rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/> |
22 | 22 | <rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/> |
23 | | - <rule ref="Generic.CodeAnalysis.EmptyPHPStatement" /> |
24 | | - <rule ref="Generic.Classes.DuplicateClassName" /> |
25 | | - <rule ref="Generic.WhiteSpace.IncrementDecrementSpacing" /> |
| 23 | + <rule ref="Generic.CodeAnalysis.EmptyPHPStatement"/> |
| 24 | + <rule ref="Generic.Classes.DuplicateClassName"/> |
| 25 | + <rule ref="Generic.WhiteSpace.IncrementDecrementSpacing"/> |
26 | 26 | <rule ref="Generic.VersionControl.GitMergeConflict" /> |
27 | 27 |
|
28 | 28 | <!-- All PHP files MUST use the Unix LF (linefeed) line ending only. --> |
|
64 | 64 |
|
65 | 65 | <rule ref="Generic.Metrics.NestingLevel"> |
66 | 66 | <properties> |
67 | | - <property name="nestingLevel" value="5" /> |
68 | | - <property name="absoluteNestingLevel" value="10" /> |
| 67 | + <property name="nestingLevel" value="5"/> |
| 68 | + <property name="absoluteNestingLevel" value="10"/> |
69 | 69 | </properties> |
70 | 70 | </rule> |
71 | 71 |
|
|
83 | 83 | <!-- https://github.com/slevomat/coding-standard --> |
84 | 84 | <config name="installed_paths" value="../../slevomat/coding-standard"/> |
85 | 85 |
|
86 | | - <rule ref="SlevomatCodingStandard.Classes.UselessLateStaticBinding"/> |
87 | | - <rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator"/> |
| 86 | + <rule ref="SlevomatCodingStandard.PHP.TypeCast"/> |
| 87 | + <rule ref="SlevomatCodingStandard.PHP.ShortList"/> |
| 88 | + <rule ref="SlevomatCodingStandard.PHP.UselessSemicolon"/> |
| 89 | + <rule ref="SlevomatCodingStandard.PHP.UselessParentheses"> |
| 90 | + <properties> |
| 91 | + <property name="ignoreComplexTernaryConditions" value="1"/> |
| 92 | + </properties> |
| 93 | + </rule> |
88 | 94 | <rule ref="SlevomatCodingStandard.Classes.UnusedPrivateElements"/> |
89 | | - <rule ref="SlevomatCodingStandard.Functions.UnusedInheritedVariablePassedToClosure"/> |
| 95 | + <rule ref="SlevomatCodingStandard.Classes.UselessLateStaticBinding"/> |
| 96 | + <rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference"/> |
| 97 | + <rule ref="SlevomatCodingStandard.Classes.EmptyLinesAroundClassBraces"> |
| 98 | + <properties> |
| 99 | + <property name="linesCountAfterOpeningBrace" value="0"/> |
| 100 | + <property name="linesCountBeforeClosingBrace" value="0"/> |
| 101 | + </properties> |
| 102 | + </rule> |
90 | 103 | <rule ref="SlevomatCodingStandard.Functions.UselessParameterDefaultValue"/> |
91 | | - <rule ref="SlevomatCodingStandard.PHP.UselessSemicolon"/> |
92 | | - <rule ref="SlevomatCodingStandard.Variables.DuplicateAssignmentToVariable"/> |
93 | 104 | <rule ref="SlevomatCodingStandard.Variables.UselessVariable"/> |
| 105 | + <rule ref="SlevomatCodingStandard.Variables.DuplicateAssignmentToVariable"/> |
| 106 | + <rule ref="SlevomatCodingStandard.Functions.UnusedInheritedVariablePassedToClosure"/> |
94 | 107 | <rule ref="SlevomatCodingStandard.Exceptions.DeadCatch"/> |
95 | | - <rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference"/> |
96 | | - <rule ref="SlevomatCodingStandard.Namespaces.NamespaceDeclaration"/> |
| 108 | + <rule ref="SlevomatCodingStandard.Namespaces.UseSpacing"/> |
| 109 | + <rule ref="SlevomatCodingStandard.Namespaces.UselessAlias"/> |
97 | 110 | <rule ref="SlevomatCodingStandard.Namespaces.NamespaceSpacing"/> |
| 111 | + <rule ref="SlevomatCodingStandard.Namespaces.UseFromSameNamespace"/> |
| 112 | + <rule ref="SlevomatCodingStandard.Namespaces.NamespaceDeclaration"/> |
| 113 | + <rule ref="SlevomatCodingStandard.Namespaces.RequireOneNamespaceInFile"/> |
| 114 | + <rule ref="SlevomatCodingStandard.Namespaces.UseDoesNotStartWithBackslash"/> |
98 | 115 | <rule ref="SlevomatCodingStandard.TypeHints.LongTypeHints"/> |
99 | | - <rule ref="SlevomatCodingStandard.PHP.ShortList"/> |
100 | | - <rule ref="SlevomatCodingStandard.PHP.TypeCast"/> |
101 | 116 | <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing"/> |
102 | 117 | <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing"/> |
103 | | - <rule ref="SlevomatCodingStandard.Namespaces.UseDoesNotStartWithBackslash"/> |
104 | | - <rule ref="SlevomatCodingStandard.Types.EmptyLinesAroundTypeBraces"> |
| 118 | + <rule ref="SlevomatCodingStandard.Commenting.ForbiddenComments"/> |
| 119 | + <rule ref="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration"/> |
| 120 | + <rule ref="SlevomatCodingStandard.Operators.SpreadOperatorSpacing"> |
105 | 121 | <properties> |
106 | | - <property name="linesCountAfterOpeningBrace" value="0" /> |
107 | | - <property name="linesCountBeforeClosingBrace" value="0" /> |
| 122 | + <property name="spacesCountAfterOperator" value="0" /> |
108 | 123 | </properties> |
109 | 124 | </rule> |
110 | | - <rule ref="SlevomatCodingStandard.Commenting.ForbiddenComments"/> |
111 | | - <rule ref="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration"/> |
112 | | - <rule ref="SlevomatCodingStandard.ControlStructures.UselessConditionWithReturn"/> |
| 125 | + <rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator"/> |
| 126 | + <rule ref="SlevomatCodingStandard.ControlStructures.UselessTernaryOperator"/> |
| 127 | + <rule ref="SlevomatCodingStandard.ControlStructures.UselessIfConditionWithReturn"/> |
| 128 | + <rule ref="SlevomatCodingStandard.ControlStructures.DisallowContinueWithoutIntegerOperandInSwitch"/> |
113 | 129 |
|
| 130 | + <!-- <rule ref="SlevomatCodingStandard.ControlStructures.EarlyExit"> |
| 131 | + <properties> |
| 132 | + <property name="ignoreStandaloneIfInScope" value="0" /> |
| 133 | + </properties> |
| 134 | + </rule> --> |
114 | 135 | <!--<rule ref="SlevomatCodingStandard.Operators.RequireCombinedAssignmentOperator"/>--> |
115 | 136 | <!--<rule ref="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation"/>--> |
116 | | - <!--<rule ref="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue"/>--> |
117 | | - <!--<rule ref="SlevomatCodingStandard.Namespaces.UseFromSameNamespace"/>--> |
118 | | - <!--<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses"/>--> |
| 137 | + <!-- <rule ref="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue"/> --> |
| 138 | + <!-- <rule ref="SlevomatCodingStandard.Namespaces.UnusedUses"/> --> |
119 | 139 | <!--<rule ref="SlevomatCodingStandard.Functions.UnusedParameter"/>--> |
120 | | - <!--<rule ref="SlevomatCodingStandard.ControlStructures.DisallowContinueWithoutIntegerOperandInSwitch"/>--> |
121 | | - |
| 140 | + |
122 | 141 | <!-- |
123 | 142 | If you want to completely disable an error message in a sniff |
124 | 143 | but you don't want to exclude the whole sniff, you can |
125 | | - change the severity of the message to 0. In this case, we |
126 | | - want the Squiz DoubleQuoteUsage sniff to be included in our |
127 | | - standard, but we don't want the ContainsVar error message to |
128 | | - ever be displayed. |
| 144 | + change the severity of the message to 0. |
129 | 145 | --> |
130 | 146 | <rule ref="Squiz.PHP.CommentedOutCode"> |
131 | 147 | <severity>1</severity> |
|
0 commit comments