Skip to content

Commit

Permalink
Merge pull request #498 from ergebnis/feature/control-structure-conti…
Browse files Browse the repository at this point in the history
…nuation-position

Enhancement: Enable and configure `control_structure_continuation_position` fixer
  • Loading branch information
localheinz authored Oct 5, 2021
2 parents ad31441 + 1500eaa commit 92478ea
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 @@ -12,6 +12,7 @@ For a full diff see [`3.0.2...main`][3.0.2...main].

* Updated `friendsofphp/php-cs-fixer` ([#495]), by [@dependabot]
* Enabled `assign_null_coalescing_to_coalesce_equal` fixer in `Php74` and `Php80` rule sets ([#497]), by [@localheinz]
* Enabled and configured `control_structure_continuation_position` fixer ([#498]), by [@localheinz]

### Fixed

Expand Down Expand Up @@ -498,6 +499,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#495]: https://github.com/ergebnis/php-cs-fixer-config/pull/495
[#496]: https://github.com/ergebnis/php-cs-fixer-config/pull/496
[#497]: https://github.com/ergebnis/php-cs-fixer-config/pull/497
[#498]: https://github.com/ergebnis/php-cs-fixer-config/pull/498

[@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 @@ -95,7 +95,9 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet
'constant_case' => [
'case' => 'lower',
],
'control_structure_continuation_position' => false,
'control_structure_continuation_position' => [
'position' => 'same_line',
],
'date_time_immutable' => true,
'declare_equal_normalize' => [
'space' => 'none',
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
'constant_case' => [
'case' => 'lower',
],
'control_structure_continuation_position' => false,
'control_structure_continuation_position' => [
'position' => 'same_line',
],
'date_time_immutable' => true,
'declare_equal_normalize' => [
'space' => 'none',
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
'constant_case' => [
'case' => 'lower',
],
'control_structure_continuation_position' => false,
'control_structure_continuation_position' => [
'position' => 'same_line',
],
'date_time_immutable' => true,
'declare_equal_normalize' => [
'space' => 'none',
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 @@ -101,7 +101,9 @@ final class Php73Test extends ExplicitRuleSetTestCase
'constant_case' => [
'case' => 'lower',
],
'control_structure_continuation_position' => false,
'control_structure_continuation_position' => [
'position' => 'same_line',
],
'date_time_immutable' => true,
'declare_equal_normalize' => [
'space' => 'none',
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 @@ -101,7 +101,9 @@ final class Php74Test extends ExplicitRuleSetTestCase
'constant_case' => [
'case' => 'lower',
],
'control_structure_continuation_position' => false,
'control_structure_continuation_position' => [
'position' => 'same_line',
],
'date_time_immutable' => true,
'declare_equal_normalize' => [
'space' => 'none',
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 @@ -101,7 +101,9 @@ final class Php80Test extends ExplicitRuleSetTestCase
'constant_case' => [
'case' => 'lower',
],
'control_structure_continuation_position' => false,
'control_structure_continuation_position' => [
'position' => 'same_line',
],
'date_time_immutable' => true,
'declare_equal_normalize' => [
'space' => 'none',
Expand Down

0 comments on commit 92478ea

Please sign in to comment.