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 b28e604
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 2 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Unreleased

For a full diff see [`4.2.0...main`][4.2.0...main].
For a full diff see [`4.3.0...main`][4.3.0...main].

## [`4.3.0`][4.3.0]

For a full diff see [`4.2.0...4.3.0`][4.2.0...4.3.0].

### Changed

Expand All @@ -15,6 +19,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 @@ -456,6 +461,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[4.0.0]: https://github.com/ergebnis/php-cs-fixer-config/releases/tag/4.0.0
[4.1.0]: https://github.com/ergebnis/php-cs-fixer-config/releases/tag/4.1.0
[4.2.0]: https://github.com/ergebnis/php-cs-fixer-config/releases/tag/4.2.0
[4.3.0]: https://github.com/ergebnis/php-cs-fixer-config/releases/tag/4.3.0

[d899e77...1.0.0]: https://github.com/ergebnis/php-cs-fixer-config/compare/d899e77...1.0.0
[1.0.0...1.1.0]: https://github.com/ergebnis/php-cs-fixer-config/compare/1.0.0...1.1.0
Expand Down Expand Up @@ -495,7 +501,8 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[3.4.0...3.4.0]: https://github.com/ergebnis/php-cs-fixer-config/compare/3.4.0...4.0.0
[4.0.0...4.1.0]: https://github.com/ergebnis/php-cs-fixer-config/compare/4.0.0...4.1.0
[4.1.0...4.2.0]: https://github.com/ergebnis/php-cs-fixer-config/compare/4.1.0...4.2.0
[4.2.0...main]: https://github.com/ergebnis/php-cs-fixer-config/compare/4.2.0...main
[4.2.0...4.3.0]: https://github.com/ergebnis/php-cs-fixer-config/compare/4.2.0...4.3.0
[4.3.0...main]: https://github.com/ergebnis/php-cs-fixer-config/compare/4.3.0...main

[#3]: https://github.com/ergebnis/php-cs-fixer-config/pull/3
[#14]: https://github.com/ergebnis/php-cs-fixer-config/pull/14
Expand Down Expand Up @@ -611,6 +618,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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 b28e604

Please sign in to comment.