diff --git a/classes/text_filter.php b/classes/text_filter.php index ea1110f..c844bfb 100644 --- a/classes/text_filter.php +++ b/classes/text_filter.php @@ -111,6 +111,8 @@ public function filter_stage_pre_format(string $text, array $options): string { * @param string $text * @param array $options * @return string + * + * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function filter_stage_pre_clean(string $text, array $options): string { return $text; @@ -122,6 +124,8 @@ public function filter_stage_pre_clean(string $text, array $options): string { * @param string $text * @param array $options * @return string + * + * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function filter_stage_post_clean(string $text, array $options): string { return $text; @@ -149,6 +153,8 @@ public function filter_stage_string(string $text, array $options): string { * @param string $text The text to filter. * @param array $options The filter options. * @return string The filtered text for this multilang block. + * + * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function filter($text, array $options = []) { diff --git a/tests/actual_test_cases.php b/tests/actual_test_cases.php index 318e678..15b146b 100644 --- a/tests/actual_test_cases.php +++ b/tests/actual_test_cases.php @@ -27,6 +27,8 @@ * Returns the actual test cases for the unit tests. * * @return array of test cases + * + * @SuppressWarnings(PHPMD.ExcessiveMethodLength) */ function multilang2_actual_test_cases(): array { return [