Skip to content

Commit

Permalink
Merge pull request #645 from ergebnis/feature/whitespace-after-comma-…
Browse files Browse the repository at this point in the history
…in-array

Enhancement: Enable `ensure_single_space` option of `whitespace_after_comma_in_array` fixer
  • Loading branch information
localheinz authored Aug 19, 2022
2 parents a50f4af + 8d69657 commit 95d177e
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ For a full diff see [`4.6.0...main`][4.6.0...main].
### Changed

- Updated `friendsofphp/php-cs-fixer` ([#642]), by [@dependabot]
- Configured the `whitespace_after_comma_in_array` fixer to ensure a single space using the `'ensure_single_space` option ([#645]), by [@localheinz]

### Fixed

Expand Down Expand Up @@ -722,6 +723,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#637]: https://github.com/ergebnis/php-cs-fixer-config/pull/637
[#642]: https://github.com/ergebnis/php-cs-fixer-config/pull/642
[#644]: https://github.com/ergebnis/php-cs-fixer-config/pull/644
[#645]: https://github.com/ergebnis/php-cs-fixer-config/pull/645

[@dependabot]: https://github.com/apps/dependabot
[@linuxjuggler]: https://github.com/linuxjuggler
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
],
'void_return' => true,
'whitespace_after_comma_in_array' => [
'ensure_single_space' => false,
'ensure_single_space' => true,
],
'yoda_style' => [
'always_move_variable' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
],
'void_return' => true,
'whitespace_after_comma_in_array' => [
'ensure_single_space' => false,
'ensure_single_space' => true,
],
'yoda_style' => [
'always_move_variable' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php81.php
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet
],
'void_return' => true,
'whitespace_after_comma_in_array' => [
'ensure_single_space' => false,
'ensure_single_space' => true,
],
'yoda_style' => [
'always_move_variable' => true,
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/Php74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ final class Php74Test extends ExplicitRuleSetTestCase
],
'void_return' => true,
'whitespace_after_comma_in_array' => [
'ensure_single_space' => false,
'ensure_single_space' => true,
],
'yoda_style' => [
'always_move_variable' => true,
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/Php80Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ final class Php80Test extends ExplicitRuleSetTestCase
],
'void_return' => true,
'whitespace_after_comma_in_array' => [
'ensure_single_space' => false,
'ensure_single_space' => true,
],
'yoda_style' => [
'always_move_variable' => true,
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/Php81Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ final class Php81Test extends ExplicitRuleSetTestCase
],
'void_return' => true,
'whitespace_after_comma_in_array' => [
'ensure_single_space' => false,
'ensure_single_space' => true,
],
'yoda_style' => [
'always_move_variable' => true,
Expand Down

0 comments on commit 95d177e

Please sign in to comment.