From 240bbb7b4964da336e825aebdfdf0174d7ed370b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20Arenaza?= Date: Sat, 12 Oct 2024 17:44:36 +0200 Subject: [PATCH] Silence completely harmless phpmd warnings --- classes/text_filter.php | 6 ++++++ tests/actual_test_cases.php | 2 ++ 2 files changed, 8 insertions(+) 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 [