Skip to content

Commit

Permalink
Merge pull request #483 from ergebnis/feature/single-space-after-cons…
Browse files Browse the repository at this point in the history
…truct

Enhancement: Configure `single_space_after_construct` fixer to enforce single space after additional constructs
  • Loading branch information
localheinz authored Aug 30, 2021
2 parents ab3c4e6 + cdaba83 commit 7315be2
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ For a full diff see [`3.0.2...main`][3.0.2...main].
* Configured `class_attributes_separation` fixer to use newly added `only_if_meta` option for elements `const` and `property` ([#479]), by [@localheinz]
* Configured `class_attributes_separation` fixer to use `none` option for element `trait_import` ([#480]), by [@localheinz]
* Added `template` to `ignored_tags` configuration of `doctrine_*` fixers ([#481]), by [@localheinz]
* Configured `single_space_after_construct` fixer to enforce single space after additional constructs ([#483]), by [@localheinz]

## [`3.0.2`][3.0.2]

Expand Down Expand Up @@ -478,6 +479,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#479]: https://github.com/ergebnis/php-cs-fixer-config/pull/479
[#480]: https://github.com/ergebnis/php-cs-fixer-config/pull/480
[#481]: https://github.com/ergebnis/php-cs-fixer-config/pull/481
[#483]: https://github.com/ergebnis/php-cs-fixer-config/pull/483

[@dependabot]: https://github.com/apps/dependabot
[@linuxjuggler]: https://github.com/linuxjuggler
Expand Down
4 changes: 4 additions & 0 deletions src/RuleSet/Php73.php
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet
'catch',
'class',
'clone',
'comment',
'const',
'const_import',
'continue',
Expand All @@ -634,8 +635,11 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet
'insteadof',
'interface',
'match',
'named_argument',
'namespace',
'new',
'open_tag_with_echo',
'php_doc',
'php_open',
'print',
'private',
Expand Down
4 changes: 4 additions & 0 deletions src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
'catch',
'class',
'clone',
'comment',
'const',
'const_import',
'continue',
Expand All @@ -636,8 +637,11 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
'insteadof',
'interface',
'match',
'named_argument',
'namespace',
'new',
'open_tag_with_echo',
'php_doc',
'php_open',
'print',
'private',
Expand Down
4 changes: 4 additions & 0 deletions src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
'catch',
'class',
'clone',
'comment',
'const',
'const_import',
'continue',
Expand All @@ -636,8 +637,11 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
'insteadof',
'interface',
'match',
'named_argument',
'namespace',
'new',
'open_tag_with_echo',
'php_doc',
'php_open',
'print',
'private',
Expand Down
4 changes: 4 additions & 0 deletions test/Unit/RuleSet/Php73Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ final class Php73Test extends ExplicitRuleSetTestCase
'catch',
'class',
'clone',
'comment',
'const',
'const_import',
'continue',
Expand All @@ -640,8 +641,11 @@ final class Php73Test extends ExplicitRuleSetTestCase
'insteadof',
'interface',
'match',
'named_argument',
'namespace',
'new',
'open_tag_with_echo',
'php_doc',
'php_open',
'print',
'private',
Expand Down
4 changes: 4 additions & 0 deletions test/Unit/RuleSet/Php74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@ final class Php74Test extends ExplicitRuleSetTestCase
'catch',
'class',
'clone',
'comment',
'const',
'const_import',
'continue',
Expand All @@ -642,8 +643,11 @@ final class Php74Test extends ExplicitRuleSetTestCase
'insteadof',
'interface',
'match',
'named_argument',
'namespace',
'new',
'open_tag_with_echo',
'php_doc',
'php_open',
'print',
'private',
Expand Down
4 changes: 4 additions & 0 deletions test/Unit/RuleSet/Php80Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@ final class Php80Test extends ExplicitRuleSetTestCase
'catch',
'class',
'clone',
'comment',
'const',
'const_import',
'continue',
Expand All @@ -642,8 +643,11 @@ final class Php80Test extends ExplicitRuleSetTestCase
'insteadof',
'interface',
'match',
'named_argument',
'namespace',
'new',
'open_tag_with_echo',
'php_doc',
'php_open',
'print',
'private',
Expand Down

0 comments on commit 7315be2

Please sign in to comment.