[web-php] master: Enhancement: Enable `no_singleline_whitespace_before_semicolons` fixer (#882)

From: Date: Thu, 07 Dec 2023 14:21:56 +0000
Subject: [web-php] master: Enhancement: Enable `no_singleline_whitespace_before_semicolons` fixer (#882)
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-31246@lists.php.net to get a copy of this message
Author: Andreas Möller (localheinz) Committer: GitHub (web-flow) Pusher: kamil-tekiela Date: 2023-12-07T15:08:15+01:00 Commit: https://github.com/php/web-php/commit/faf2e75920ba6cc1ceffd8f689b7df0855a4d097 Raw diff: https://github.com/php/web-php/commit/faf2e75920ba6cc1ceffd8f689b7df0855a4d097.diff Enhancement: Enable no_singleline_whitespace_before_semicolons fixer (#882) Changed paths: M .php-cs-fixer.php M include/errors.inc Diff: 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])) {

« previous php.webmaster (#31246) next »