From 5211393ae6adc0c216f86ee29be7bbac58a59c18 Mon Sep 17 00:00:00 2001 From: Kei Date: Mon, 9 Dec 2024 22:05:16 +0700 Subject: [PATCH] Laravel: Add `single_line_comment_spacing` rule https://github.com/laravel/pint/commit/fecb30642b760a15bc65b37f884a5c8542e73473 --- src/RuleSet/Sets/Laravel.php | 3 ++- src/RuleSet/Sets/Relax.php | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RuleSet/Sets/Laravel.php b/src/RuleSet/Sets/Laravel.php index c0876c9..551a1c0 100644 --- a/src/RuleSet/Sets/Laravel.php +++ b/src/RuleSet/Sets/Laravel.php @@ -5,7 +5,7 @@ use Realodix\Relax\RuleSet\AbstractRuleSet; /** - * Latest commit 6ef7e3c + * Latest commit fecb306 * https://github.com/laravel/pint/blob/main/resources/presets/laravel.php */ final class Laravel extends AbstractRuleSet @@ -159,6 +159,7 @@ public function rules(): array 'single_class_element_per_statement' => ['elements' => ['const', 'property']], 'single_import_per_statement' => true, 'single_line_after_imports' => true, + 'single_line_comment_spacing' => true, 'single_line_comment_style' => ['comment_types' => ['hash']], 'single_line_empty_body' => true, 'single_quote' => true, diff --git a/src/RuleSet/Sets/Relax.php b/src/RuleSet/Sets/Relax.php index 0142ff7..599a45e 100644 --- a/src/RuleSet/Sets/Relax.php +++ b/src/RuleSet/Sets/Relax.php @@ -42,7 +42,6 @@ public function mainRules(): array 'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'], 'phpdoc_var_annotation_correct_order' => true, 'simple_to_complex_string_variable' => true, - 'single_line_comment_spacing' => true, Fixer\MultilineCommentOpeningClosingAloneFixer::name() => true, Fixer\NoImportFromGlobalNamespaceFixer::name() => true,