From 8ea907b6bd297aad3e7483b7afe6f46327e0bee9 Mon Sep 17 00:00:00 2001 From: Orestis Date: Tue, 11 Nov 2025 09:22:34 +0100 Subject: [PATCH] Add multiline_whitespace_before_semicolons With this change we will remove any whitespaces before a semicolon e.g. - return 1 + 2 - ; + return 1 + 2; https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/rules/semicolon/multiline_whitespace_before_semicolons.rst --- src/RuleSet/TicketSwapRuleSet.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/RuleSet/TicketSwapRuleSet.php b/src/RuleSet/TicketSwapRuleSet.php index 95f7d25..70c71be 100644 --- a/src/RuleSet/TicketSwapRuleSet.php +++ b/src/RuleSet/TicketSwapRuleSet.php @@ -132,6 +132,7 @@ public static function create() : RuleSet 'on_multiline' => 'ensure_fully_multiline', 'attribute_placement' => 'standalone', ], + 'multiline_whitespace_before_semicolons' => true, 'native_function_casing' => true, 'native_type_declaration_casing' => true, 'new_expression_parentheses' => true,