Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Configure single_space_after_construct fixer to enforce a single space after additional constructs #588

Merged
merged 1 commit into from
Mar 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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