Skip to content

Commit

Permalink
Laravel: Add single_line_comment_spacing rule
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Dec 9, 2024
1 parent fb265f0 commit 5211393
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/RuleSet/Sets/Laravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/RuleSet/Sets/Relax.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5211393

Please sign in to comment.