From 79c76a25045589f76ff4fe3deee96cbd58b54811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Thu, 7 Dec 2023 13:37:37 +0100 Subject: [PATCH 1/2] Enhancement: Enable no_singleline_whitespace_before_semicolons fixer --- .php-cs-fixer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index eb69ebbc76..c6f1f79705 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -41,6 +41,7 @@ 'new_with_parentheses' => true, 'no_extra_blank_lines' => true, 'no_mixed_echo_print' => true, + 'no_singleline_whitespace_before_semicolons' => true, 'no_trailing_whitespace' => true, 'ordered_class_elements' => true, 'random_api_migration' => true, From 6b504adb733b15cb9b4483f3cae95a5a5b6833bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Thu, 7 Dec 2023 13:38:22 +0100 Subject: [PATCH 2/2] Fix: Run 'make coding-standards' --- include/errors.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/errors.inc b/include/errors.inc index c243782238..17fd869123 100644 --- a/include/errors.inc +++ b/include/errors.inc @@ -582,7 +582,7 @@ function get_legacy_manual_urls(string $uri): array if (count($matches) < 2) { return ''; } - return $matches[1] ; + return $matches[1]; }, $uri); if (!isset($pages_ids[$page_id])) {