|
95 | 95 | <!-- Type Hint Formatting --> |
96 | 96 | <rule ref="SlevomatCodingStandard.TypeHints.LongTypeHints"/> |
97 | 97 | <rule ref="SlevomatCodingStandard.TypeHints.NullTypeHintOnLastPosition"/> |
98 | | - <rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat"> |
99 | | - <properties> |
100 | | - <property name="enable" value="true"/> |
101 | | - <property name="withSpaces" value="no"/> |
102 | | - <property name="shortNullable" value="yes"/> |
103 | | - <property name="nullPosition" value="last"/> |
104 | | - </properties> |
105 | | - </rule> |
106 | 98 | <rule ref="SlevomatCodingStandard.TypeHints.DNFTypeHintFormat"> |
107 | 99 | <properties> |
108 | 100 | <property name="enable" value="true"/> |
|
112 | 104 | <property name="nullPosition" value="last"/> |
113 | 105 | </properties> |
114 | 106 | </rule> |
| 107 | + |
115 | 108 | <rule ref="SlevomatCodingStandard.TypeHints.UselessConstantTypeHint"/> |
116 | 109 |
|
117 | 110 | <!-- Disallow Array Type Hint Syntax (use generics in PHPDoc) --> |
|
197 | 190 | <rule ref="SlevomatCodingStandard.Arrays.MultiLineArrayEndBracketPlacement"/> |
198 | 191 | <rule ref="SlevomatCodingStandard.Arrays.SingleLineArrayWhitespace"> |
199 | 192 | <properties> |
200 | | - <property name="spacesCountInsideBrackets" type="int" value="0"/> |
201 | | - <property name="spacesCountAfterComma" type="int" value="1"/> |
| 193 | + <property name="spacesAroundBrackets" value="0"/> |
202 | 194 | <property name="enableEmptyArrayCheck" value="true"/> |
203 | 195 | </properties> |
204 | 196 | </rule> |
|
238 | 230 | <rule ref="SlevomatCodingStandard.Classes.RequireMultiLineMethodSignature"> |
239 | 231 | <properties> |
240 | 232 | <property name="minLineLength" value="121"/> |
241 | | - <property name="minParameterCount" value="4"/> |
| 233 | + <property name="minParametersCount" value="4"/> |
242 | 234 | <property name="withPromotedProperties" value="true"/> |
243 | 235 | </properties> |
244 | 236 | </rule> |
|
279 | 271 | <!-- Ternary Operators --> |
280 | 272 | <rule ref="SlevomatCodingStandard.ControlStructures.RequireMultiLineTernaryOperator"> |
281 | 273 | <properties> |
| 274 | + <!-- PSR-12 typical line length limit --> |
282 | 275 | <property name="lineLengthLimit" value="120"/> |
283 | | - <property name="minExpressionsInOneLine" value="2"/> |
| 276 | + <property name="minExpressionsLength" value="null"/> |
284 | 277 | </properties> |
285 | 278 | </rule> |
286 | 279 |
|
| 280 | + |
287 | 281 | <!-- ################################################################## --> |
288 | 282 | <!-- ## EXCEPTION HANDLING ## --> |
289 | 283 | <!-- ################################################################## --> |
|
523 | 517 | </rule> |
524 | 518 |
|
525 | 519 | <rule ref="SlevomatCodingStandard.ControlStructures.DisallowContinueWithoutIntegerOperandInSwitch"/> |
526 | | - <rule ref="SlevomatCodingStandard.ControlStructures.DisallowTrailingMultiLineTernaryOperatorSniff"/> |
| 520 | + <rule ref="SlevomatCodingStandard.ControlStructures.DisallowTrailingMultiLineTernaryOperator"/> |
527 | 521 | <rule ref="SlevomatCodingStandard.ControlStructures.DisallowYodaComparison"/> |
528 | 522 |
|
529 | 523 | <rule ref="SlevomatCodingStandard.ControlStructures.EarlyExit"> |
|
0 commit comments