Skip to content

Commit 995deb8

Browse files
committed
Configure single_line_empty_body fixer
1 parent 5189f2d commit 995deb8

File tree

11 files changed

+11
-21
lines changed

11 files changed

+11
-21
lines changed

src/Factory.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ final class Factory
3939
* rules: array<string, mixed>
4040
* } $options Array of resolved options
4141
*/
42-
private function __construct(private RulesetInterface $ruleset, private array $options)
43-
{
44-
}
42+
private function __construct(private RulesetInterface $ruleset, private array $options) {}
4543

4644
/**
4745
* Prepares the ruleset and options before the `PhpCsFixer\Config` object

src/FixerGenerator.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@
2525
*/
2626
final class FixerGenerator implements \IteratorAggregate
2727
{
28-
private function __construct(private string $path, private string $vendor)
29-
{
30-
}
28+
private function __construct(private string $path, private string $vendor) {}
3129

3230
/**
3331
* @throws \RuntimeException

src/Ruleset/Nexus74.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ public function __construct()
532532
'single_line_after_imports' => true,
533533
'single_line_comment_spacing' => true,
534534
'single_line_comment_style' => ['comment_types' => ['asterisk', 'hash']],
535+
'single_line_empty_body' => true,
535536
'single_line_throw' => false,
536537
'single_quote' => ['strings_containing_single_quote_chars' => false],
537538
'single_space_around_construct' => [

src/Ruleset/Nexus80.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ public function __construct()
532532
'single_line_after_imports' => true,
533533
'single_line_comment_spacing' => true,
534534
'single_line_comment_style' => ['comment_types' => ['asterisk', 'hash']],
535+
'single_line_empty_body' => true,
535536
'single_line_throw' => false,
536537
'single_quote' => ['strings_containing_single_quote_chars' => false],
537538
'single_space_around_construct' => [

src/Ruleset/Nexus81.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ public function __construct()
532532
'single_line_after_imports' => true,
533533
'single_line_comment_spacing' => true,
534534
'single_line_comment_style' => ['comment_types' => ['asterisk', 'hash']],
535+
'single_line_empty_body' => true,
535536
'single_line_throw' => false,
536537
'single_quote' => ['strings_containing_single_quote_chars' => false],
537538
'single_space_around_construct' => [

src/Ruleset/Nexus82.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ public function __construct()
532532
'single_line_after_imports' => true,
533533
'single_line_comment_spacing' => true,
534534
'single_line_comment_style' => ['comment_types' => ['asterisk', 'hash']],
535+
'single_line_empty_body' => true,
535536
'single_line_throw' => false,
536537
'single_quote' => ['strings_containing_single_quote_chars' => false],
537538
'single_space_around_construct' => [

src/Test/FixerProvider.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ final class FixerProvider
3232
* @param array<int, string> $configured configured fixers from a ruleset
3333
* @param array<string, array<string, bool|string|string[]>|bool> $enabled enabled fixers from a ruleset
3434
*/
35-
private function __construct(private array $configured, private array $enabled)
36-
{
37-
}
35+
private function __construct(private array $configured, private array $enabled) {}
3836

3937
public static function create(RulesetInterface $ruleset): self
4038
{

tests/Ruleset/Nexus74Test.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,4 @@
2222
* @covers \Nexus\CsConfig\Ruleset\Nexus74
2323
* @covers \Nexus\CsConfig\Test\AbstractRulesetTestCase
2424
*/
25-
final class Nexus74Test extends AbstractRulesetTestCase
26-
{
27-
}
25+
final class Nexus74Test extends AbstractRulesetTestCase {}

tests/Ruleset/Nexus80Test.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,4 @@
2222
* @covers \Nexus\CsConfig\Ruleset\Nexus80
2323
* @covers \Nexus\CsConfig\Test\AbstractRulesetTestCase
2424
*/
25-
final class Nexus80Test extends AbstractRulesetTestCase
26-
{
27-
}
25+
final class Nexus80Test extends AbstractRulesetTestCase {}

tests/Ruleset/Nexus81Test.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,4 @@
2222
* @covers \Nexus\CsConfig\Ruleset\Nexus81
2323
* @covers \Nexus\CsConfig\Test\AbstractRulesetTestCase
2424
*/
25-
final class Nexus81Test extends AbstractRulesetTestCase
26-
{
27-
}
25+
final class Nexus81Test extends AbstractRulesetTestCase {}

0 commit comments

Comments
 (0)