Skip to content

Commit

Permalink
Merge pull request #621 from ergebnis/feature/control-structure-braces
Browse files Browse the repository at this point in the history
Enhancement: Enable `control_structure_braces` fixer
  • Loading branch information
localheinz authored Jul 11, 2022
2 parents 9e64370 + 7f23bb0 commit c725f96
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.4.0...main`][4.4.0...main].
### Changed

- Updated `friendsofphp/php-cs-fixer` ([#620]), by [@dependabot]
- Enabled `control_structure_braces` fixer ([#621]), by [@localheinz]

## [`4.4.0`][4.4.0]

Expand Down Expand Up @@ -639,6 +640,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#592]: https://github.com/ergebnis/php-cs-fixer-config/pull/592
[#593]: https://github.com/ergebnis/php-cs-fixer-config/pull/593
[#620]: https://github.com/ergebnis/php-cs-fixer-config/pull/620
[#621]: https://github.com/ergebnis/php-cs-fixer-config/pull/621

[@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 @@ -101,7 +101,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
'constant_case' => [
'case' => 'lower',
],
'control_structure_braces' => false,
'control_structure_braces' => true,
'control_structure_continuation_position' => [
'position' => 'same_line',
],
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
'constant_case' => [
'case' => 'lower',
],
'control_structure_braces' => false,
'control_structure_braces' => true,
'control_structure_continuation_position' => [
'position' => 'same_line',
],
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php81.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet
'constant_case' => [
'case' => 'lower',
],
'control_structure_braces' => false,
'control_structure_braces' => true,
'control_structure_continuation_position' => [
'position' => 'same_line',
],
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 @@ -107,7 +107,7 @@ final class Php74Test extends ExplicitRuleSetTestCase
'constant_case' => [
'case' => 'lower',
],
'control_structure_braces' => false,
'control_structure_braces' => true,
'control_structure_continuation_position' => [
'position' => 'same_line',
],
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 @@ -107,7 +107,7 @@ final class Php80Test extends ExplicitRuleSetTestCase
'constant_case' => [
'case' => 'lower',
],
'control_structure_braces' => false,
'control_structure_braces' => true,
'control_structure_continuation_position' => [
'position' => 'same_line',
],
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 @@ -107,7 +107,7 @@ final class Php81Test extends ExplicitRuleSetTestCase
'constant_case' => [
'case' => 'lower',
],
'control_structure_braces' => false,
'control_structure_braces' => true,
'control_structure_continuation_position' => [
'position' => 'same_line',
],
Expand Down

0 comments on commit c725f96

Please sign in to comment.