|
27 | 27 | <exclude name="PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse"/> |
28 | 28 | <exclude name="PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter"/> |
29 | 29 | </rule> |
30 | | - |
| 30 | + <rule ref="Generic.Arrays.DisallowLongArraySyntax"/> |
| 31 | + <rule ref="Generic.Arrays.ArrayIndent"> |
| 32 | + <!-- conflicts with multi-line arrays --> |
| 33 | + <exclude name="Generic.Arrays.ArrayIndent.KeyIncorrect"/> |
| 34 | + <!-- conflicts with multi-line arrays --> |
| 35 | + <exclude name="Generic.Arrays.ArrayIndent.CloseBraceIncorrect"/> |
| 36 | + </rule> |
| 37 | + <rule ref="Generic.Classes.DuplicateClassName"/> |
31 | 38 | <rule ref="Generic.CodeAnalysis.EmptyStatement"> |
32 | 39 | <exclude name="Generic.CodeAnalysis.EmptyStatement.DetectedCatch"/> |
33 | 40 | </rule> |
34 | 41 | <rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/> |
35 | 42 | <rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/> |
36 | 43 | <rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier"/> |
| 44 | + <rule ref="Generic.Commenting.Todo"/> |
37 | 45 | <rule ref="Generic.ControlStructures.InlineControlStructure"/> |
38 | 46 | <rule ref="Generic.Files.ByteOrderMark"/> |
39 | 47 | <rule ref="Generic.Files.InlineHTML"/> |
|
61 | 69 | <rule ref="Generic.PHP.LowerCaseConstant"/> |
62 | 70 | <rule ref="Generic.PHP.LowerCaseKeyword"/> |
63 | 71 | <rule ref="Generic.PHP.LowerCaseType"/> |
64 | | - <rule ref="Generic.Classes.DuplicateClassName"/> |
65 | | - <rule ref="Generic.Commenting.Todo"/> |
66 | 72 | <rule ref="Generic.Strings.UnnecessaryStringConcat"> |
67 | 73 | <properties> |
68 | 74 | <property name="allowMultiline" value="true"/> |
|
80 | 86 | <property name="ignoreNewlines" value="true"/> |
81 | 87 | </properties> |
82 | 88 | </rule> |
83 | | - <rule ref="Generic.Arrays.DisallowLongArraySyntax"/> |
84 | | - |
85 | 89 | <rule ref="PEAR.Formatting.MultiLineAssignment"/> |
86 | 90 | <rule ref="PEAR.WhiteSpace.ObjectOperatorIndent"/> |
87 | 91 | <rule ref="PEAR.Commenting.InlineComment"/> |
88 | 92 | <rule ref="PEAR.Classes.ClassDeclaration"/> |
89 | | - |
90 | 93 | <rule ref="Squiz.PHP.GlobalKeyword"/> |
91 | 94 | <rule ref="Squiz.PHP.InnerFunctions"/> |
92 | 95 | <rule ref="Squiz.PHP.LowercasePHPFunctions"/> |
|
148 | 151 | <exclude name="Squiz.Commenting.FunctionComment.ParamCommentFullStop"/> |
149 | 152 | <!-- comments don't have to be sentences --> |
150 | 153 | <exclude name="Squiz.Commenting.FunctionComment.ParamCommentNotCapital"/> |
151 | | - <exclude name="Squiz.Commenting.FunctionComment.ScalarTypeHintMissing"/><!-- works only for code requiring PHP 7 code or better --> |
152 | 154 | <!-- we don't want spacing with alignment --> |
153 | 155 | <exclude name="Squiz.Commenting.FunctionComment.SpacingAfterParamName"/> |
154 | 156 | <!-- we don't want spacing with alignment --> |
|
224 | 226 | <property name="spacingAfterLast" value="0"/> |
225 | 227 | </properties> |
226 | 228 | </rule> |
227 | | - |
228 | 229 | <rule ref="SlevomatCodingStandard.PHP.ShortList"/> |
229 | 230 | <rule ref="SlevomatCodingStandard.PHP.TypeCast"/> |
230 | 231 | <rule ref="SlevomatCodingStandard.PHP.OptimizedFunctionsWithoutUnpacking"/> |
|
468 | 469 | <property name="ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach" value="true"/> |
469 | 470 | </properties> |
470 | 471 | </rule> |
471 | | - |
472 | 472 | <rule ref="InfinityloopCodingStandard.WhiteSpace.MemberVarSpacing"> |
473 | 473 | <properties> |
474 | 474 | <property name="spacing" value="0"/> |
|
0 commit comments