Skip to content

Commit

Permalink
Merge pull request #147 from hks-systeme/fix/cast-spaces
Browse files Browse the repository at this point in the history
Fix: Explicitly configure `cast_spaces` fixer
  • Loading branch information
localheinz committed Oct 6, 2021
2 parents 73b52f9 + 8c69c68 commit 81724f8
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 10 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -22,6 +22,7 @@ For a full diff see [`2.2.0...main`][2.2.0...main].
### Fixed

* Stopped using deprecated `use_trait` option for `no_extra_blank_lines` fixer ([#139]), by [@localheinz]
* Explicitly configured `cast_spaces` fixer ([#147]), by [@localheinz]

## [`2.2.0`][2.2.0]

Expand Down Expand Up @@ -152,6 +153,7 @@ For a full diff see [`3a0205c...1.0.0`][3a0205c...1.0.0].
[#144]: https://github.com/hks-systeme/php-cs-fixer-config/pull/144
[#145]: https://github.com/hks-systeme/php-cs-fixer-config/pull/145
[#146]: https://github.com/hks-systeme/php-cs-fixer-config/pull/146
[#147]: https://github.com/hks-systeme/php-cs-fixer-config/pull/147

[@dependabot]: https://github.com/apps/dependabot
[@localheinz]: https://github.com/localheinz
4 changes: 3 additions & 1 deletion src/RuleSet/Php71.php
Expand Up @@ -64,7 +64,9 @@ final class Php71 extends AbstractRuleSet implements ExplicitRuleSet
'position_after_control_structures' => 'same',
'position_after_functions_and_oop_constructs' => 'next',
],
'cast_spaces' => true,
'cast_spaces' => [
'space' => 'single',
],
'class_attributes_separation' => [
'elements' => [
'const' => 'only_if_meta',
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php72.php
Expand Up @@ -64,7 +64,9 @@ final class Php72 extends AbstractRuleSet implements ExplicitRuleSet
'position_after_control_structures' => 'same',
'position_after_functions_and_oop_constructs' => 'next',
],
'cast_spaces' => true,
'cast_spaces' => [
'space' => 'single',
],
'class_attributes_separation' => [
'elements' => [
'const' => 'only_if_meta',
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php73.php
Expand Up @@ -64,7 +64,9 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet
'position_after_control_structures' => 'same',
'position_after_functions_and_oop_constructs' => 'next',
],
'cast_spaces' => true,
'cast_spaces' => [
'space' => 'single',
],
'class_attributes_separation' => [
'elements' => [
'const' => 'only_if_meta',
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php74.php
Expand Up @@ -64,7 +64,9 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
'position_after_control_structures' => 'same',
'position_after_functions_and_oop_constructs' => 'next',
],
'cast_spaces' => true,
'cast_spaces' => [
'space' => 'single',
],
'class_attributes_separation' => [
'elements' => [
'const' => 'only_if_meta',
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php80.php
Expand Up @@ -64,7 +64,9 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
'position_after_control_structures' => 'same',
'position_after_functions_and_oop_constructs' => 'next',
],
'cast_spaces' => true,
'cast_spaces' => [
'space' => 'single',
],
'class_attributes_separation' => [
'elements' => [
'const' => 'only_if_meta',
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php71Test.php
Expand Up @@ -70,7 +70,9 @@ final class Php71Test extends ExplicitRuleSetTestCase
'position_after_control_structures' => 'same',
'position_after_functions_and_oop_constructs' => 'next',
],
'cast_spaces' => true,
'cast_spaces' => [
'space' => 'single',
],
'class_attributes_separation' => [
'elements' => [
'const' => 'only_if_meta',
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php72Test.php
Expand Up @@ -70,7 +70,9 @@ final class Php72Test extends ExplicitRuleSetTestCase
'position_after_control_structures' => 'same',
'position_after_functions_and_oop_constructs' => 'next',
],
'cast_spaces' => true,
'cast_spaces' => [
'space' => 'single',
],
'class_attributes_separation' => [
'elements' => [
'const' => 'only_if_meta',
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php73Test.php
Expand Up @@ -70,7 +70,9 @@ final class Php73Test extends ExplicitRuleSetTestCase
'position_after_control_structures' => 'same',
'position_after_functions_and_oop_constructs' => 'next',
],
'cast_spaces' => true,
'cast_spaces' => [
'space' => 'single',
],
'class_attributes_separation' => [
'elements' => [
'const' => 'only_if_meta',
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php74Test.php
Expand Up @@ -70,7 +70,9 @@ final class Php74Test extends ExplicitRuleSetTestCase
'position_after_control_structures' => 'same',
'position_after_functions_and_oop_constructs' => 'next',
],
'cast_spaces' => true,
'cast_spaces' => [
'space' => 'single',
],
'class_attributes_separation' => [
'elements' => [
'const' => 'only_if_meta',
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php80Test.php
Expand Up @@ -70,7 +70,9 @@ final class Php80Test extends ExplicitRuleSetTestCase
'position_after_control_structures' => 'same',
'position_after_functions_and_oop_constructs' => 'next',
],
'cast_spaces' => true,
'cast_spaces' => [
'space' => 'single',
],
'class_attributes_separation' => [
'elements' => [
'const' => 'only_if_meta',
Expand Down

0 comments on commit 81724f8

Please sign in to comment.