From 2e7ef248e133c86387917bbe8f0e830d0c74bc70 Mon Sep 17 00:00:00 2001 From: Julius Kiekbusch Date: Wed, 5 Jun 2024 11:31:36 +0200 Subject: [PATCH] Enable single_line_empty_body fixer --- resources/presets/laravel.php | 1 + .../fixers/single_line_empty_body.php | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 tests/Fixtures/fixers/single_line_empty_body.php diff --git a/resources/presets/laravel.php b/resources/presets/laravel.php index f724ca32..f8b436ba 100644 --- a/resources/presets/laravel.php +++ b/resources/presets/laravel.php @@ -187,6 +187,7 @@ 'single_line_comment_style' => [ 'comment_types' => ['hash'], ], + 'single_line_empty_body' => true, 'single_quote' => true, 'single_space_around_construct' => true, 'space_after_semicolon' => true, diff --git a/tests/Fixtures/fixers/single_line_empty_body.php b/tests/Fixtures/fixers/single_line_empty_body.php new file mode 100644 index 00000000..085fe278 --- /dev/null +++ b/tests/Fixtures/fixers/single_line_empty_body.php @@ -0,0 +1,22 @@ +