Skip to content

Commit

Permalink
Enhancement: Configure single_space_after_construct fixer to enforce …
Browse files Browse the repository at this point in the history
…a single space after additional constructs
  • Loading branch information
localheinz committed Mar 8, 2022
1 parent 1cf86d0 commit 3e0fbac
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -15,6 +15,7 @@ For a full diff see [`4.2.0...main`][4.2.0...main].
- Configured `ordered_class_elements` fixer to order more elements ([#584]), by [@localheinz]
- Configured `phpdoc_align` fixer to align more tags ([#586]), by [@localheinz]
- Configured `single_class_element_per_statement` fixer to enforce single class element for `const` statements ([#587]), by [@localheinz]
- Configured `single_space_after_construct` fixer to enforce a single space after additional constructs ([#588]), by [@localheinz]

## [`4.2.0`][4.2.0]

Expand Down Expand Up @@ -611,6 +612,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#584]: https://github.com/ergebnis/php-cs-fixer-config/pull/584
[#586]: https://github.com/ergebnis/php-cs-fixer-config/pull/586
[#587]: https://github.com/ergebnis/php-cs-fixer-config/pull/587
[#588]: https://github.com/ergebnis/php-cs-fixer-config/pull/588

[@dependabot]: https://github.com/apps/dependabot
[@linuxjuggler]: https://github.com/linuxjuggler
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php74.php
Expand Up @@ -675,6 +675,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
'require_once',
'return',
'static',
'switch',
'throw',
'trait',
'try',
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php80.php
Expand Up @@ -675,6 +675,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
'require_once',
'return',
'static',
'switch',
'throw',
'trait',
'try',
Expand Down
3 changes: 3 additions & 0 deletions src/RuleSet/Php81.php
Expand Up @@ -645,6 +645,7 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet
'echo',
'else',
'elseif',
'enum',
'extends',
'final',
'finally',
Expand Down Expand Up @@ -672,10 +673,12 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet
'private',
'protected',
'public',
'readonly',
'require',
'require_once',
'return',
'static',
'switch',
'throw',
'trait',
'try',
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php74Test.php
Expand Up @@ -681,6 +681,7 @@ final class Php74Test extends ExplicitRuleSetTestCase
'require_once',
'return',
'static',
'switch',
'throw',
'trait',
'try',
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php80Test.php
Expand Up @@ -681,6 +681,7 @@ final class Php80Test extends ExplicitRuleSetTestCase
'require_once',
'return',
'static',
'switch',
'throw',
'trait',
'try',
Expand Down
3 changes: 3 additions & 0 deletions test/Unit/RuleSet/Php81Test.php
Expand Up @@ -651,6 +651,7 @@ final class Php81Test extends ExplicitRuleSetTestCase
'echo',
'else',
'elseif',
'enum',
'extends',
'final',
'finally',
Expand Down Expand Up @@ -678,10 +679,12 @@ final class Php81Test extends ExplicitRuleSetTestCase
'private',
'protected',
'public',
'readonly',
'require',
'require_once',
'return',
'static',
'switch',
'throw',
'trait',
'try',
Expand Down

0 comments on commit 3e0fbac

Please sign in to comment.