Skip to content

Commit

Permalink
Merge pull request #478 from ergebnis/feature/types-spaces
Browse files Browse the repository at this point in the history
Enhancement: Enable and configure `types_spaces` fixer
  • Loading branch information
localheinz committed Aug 30, 2021
2 parents d644c57 + 2db54a5 commit 105620a
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ For a full diff see [`3.0.2...main`][3.0.2...main].
* Updated `friendsofphp/php-cs-fixer` ([#475]), by [@dependabot]
* Enabled `declare_parentheses` fixer ([#476]), by [@localheinz]
* Enabled and configured `empty_loop_body` fixer ([#477]), by [@localheinz]
* Enabled and configured `types_spaces` fixer ([#478]), by [@localheinz]

## [`3.0.2`][3.0.2]

Expand Down Expand Up @@ -470,6 +471,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#475]: https://github.com/ergebnis/php-cs-fixer-config/pull/475
[#476]: https://github.com/ergebnis/php-cs-fixer-config/pull/476
[#477]: https://github.com/ergebnis/php-cs-fixer-config/pull/477
[#478]: https://github.com/ergebnis/php-cs-fixer-config/pull/478

[@dependabot]: https://github.com/apps/dependabot
[@linuxjuggler]: https://github.com/linuxjuggler
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php73.php
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,9 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet
],
],
'trim_array_spaces' => true,
'types_spaces' => false,
'types_spaces' => [
'space' => 'none',
],
'unary_operator_spaces' => true,
'use_arrow_functions' => false,
'visibility_required' => [
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,9 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
],
],
'trim_array_spaces' => true,
'types_spaces' => false,
'types_spaces' => [
'space' => 'none',
],
'unary_operator_spaces' => true,
'use_arrow_functions' => false,
'visibility_required' => [
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,9 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
],
],
'trim_array_spaces' => true,
'types_spaces' => false,
'types_spaces' => [
'space' => 'none',
],
'unary_operator_spaces' => true,
'use_arrow_functions' => false,
'visibility_required' => [
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php73Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,9 @@ final class Php73Test extends ExplicitRuleSetTestCase
],
],
'trim_array_spaces' => true,
'types_spaces' => false,
'types_spaces' => [
'space' => 'none',
],
'unary_operator_spaces' => true,
'use_arrow_functions' => false,
'visibility_required' => [
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,9 @@ final class Php74Test extends ExplicitRuleSetTestCase
],
],
'trim_array_spaces' => true,
'types_spaces' => false,
'types_spaces' => [
'space' => 'none',
],
'unary_operator_spaces' => true,
'use_arrow_functions' => false,
'visibility_required' => [
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php80Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,9 @@ final class Php80Test extends ExplicitRuleSetTestCase
],
],
'trim_array_spaces' => true,
'types_spaces' => false,
'types_spaces' => [
'space' => 'none',
],
'unary_operator_spaces' => true,
'use_arrow_functions' => false,
'visibility_required' => [
Expand Down

0 comments on commit 105620a

Please sign in to comment.