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

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to