diff --git a/coder_sniffer/Drupal/ruleset.xml b/coder_sniffer/Drupal/ruleset.xml index 59da63e2..fd3a42b1 100644 --- a/coder_sniffer/Drupal/ruleset.xml +++ b/coder_sniffer/Drupal/ruleset.xml @@ -47,16 +47,18 @@ *.tpl.php + + + - + 0 - @@ -65,13 +67,6 @@ - - - - - - - diff --git a/tests/Drupal/bad/BadUnitTest.php b/tests/Drupal/bad/BadUnitTest.php index 59811f28..15c4f045 100644 --- a/tests/Drupal/bad/BadUnitTest.php +++ b/tests/Drupal/bad/BadUnitTest.php @@ -434,6 +434,7 @@ protected function getWarningList(string $testFile): array 809 => 1, 823 => 1, 824 => 1, + 836 => 1, ]; }//end switch diff --git a/tests/Drupal/bad/bad.php.fixed b/tests/Drupal/bad/bad.php.fixed index f5fd6185..71ddbb72 100644 --- a/tests/Drupal/bad/bad.php.fixed +++ b/tests/Drupal/bad/bad.php.fixed @@ -884,7 +884,6 @@ function test28() { // Multiple statements on one line are not allowed. echo 'Hi!'; -; /** *