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, 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])) {