File tree Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 47
47
<exclude-pattern >*.tpl.php</exclude-pattern >
48
48
</rule >
49
49
50
+ <!-- Generic sniffs -->
51
+ <rule ref =" Generic.CodeAnalysis.EmptyPHPStatement" />
50
52
<rule ref =" Generic.CodeAnalysis.UselessOverridingMethod" />
51
53
<rule ref =" Generic.Files.ByteOrderMark" />
54
+ <rule ref =" Generic.Files.LineEndings" />
52
55
<rule ref =" Generic.Formatting.DisallowMultipleStatements" />
53
56
<rule ref =" Generic.Formatting.SpaceAfterCast" />
54
-
55
57
<rule ref =" Generic.Functions.FunctionCallArgumentSpacing" />
58
+ <!-- Already covered by Drupal.WhiteSpace.Comma.NoSpace. -->
56
59
<rule ref =" Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma" >
57
60
<severity >0</severity >
58
61
</rule >
59
-
60
62
<rule ref =" Generic.NamingConventions.ConstructorName" />
61
63
<rule ref =" Generic.NamingConventions.UpperCaseConstantName" />
62
64
<rule ref =" Generic.PHP.DeprecatedFunctions" />
65
67
<rule ref =" Generic.PHP.UpperCaseConstant" />
66
68
<rule ref =" Generic.WhiteSpace.DisallowTabIndent" />
67
69
68
- <!-- Use Unix newlines -->
69
- <rule ref =" Generic.Files.LineEndings" >
70
- <properties >
71
- <property name =" eolChar" value =" \n" />
72
- </properties >
73
- </rule >
74
-
75
70
<rule ref =" MySource.Debug.DebugCode" />
76
71
<rule ref =" PEAR.Files.IncludingFile" />
77
72
<!-- Disable some error messages that we do not want. -->
Original file line number Diff line number Diff line change @@ -434,6 +434,7 @@ protected function getWarningList(string $testFile): array
434
434
809 => 1 ,
435
435
823 => 1 ,
436
436
824 => 1 ,
437
+ 836 => 1 ,
437
438
];
438
439
}//end switch
439
440
Original file line number Diff line number Diff line change @@ -884,7 +884,6 @@ function test28() {
884
884
885
885
// Multiple statements on one line are not allowed.
886
886
echo 'Hi!';
887
- ;
888
887
889
888
/**
890
889
*
You can’t perform that action at this time.
0 commit comments