Skip to content

Commit

Permalink
Silence completely harmless phpmd warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
iarenaza committed Oct 12, 2024
1 parent 4719a6b commit 240bbb7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions classes/text_filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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 = []) {

Expand Down
2 changes: 2 additions & 0 deletions tests/actual_test_cases.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down

0 comments on commit 240bbb7

Please sign in to comment.