Skip to content

Commit

Permalink
Enhancement: Configure case option of elements option of class_attrib…
Browse files Browse the repository at this point in the history
…utes_separation fixer
  • Loading branch information
localheinz committed Oct 21, 2023
1 parent 3d3febb commit 80b270c
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

For a full diff see [`6.8.1...main`][6.8.1...main].

### Changes

- Configured `case` option of `elements` option of `class_attributes_separation` fixer ([#922]), by [@localheinz]

## [`6.8.1`][6.8.1]

For a full diff see [`6.8.0...6.8.1`][6.8.0...6.8.1].
Expand Down Expand Up @@ -1325,6 +1329,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#914]: https://github.com/ergebnis/php-cs-fixer-config/pull/914
[#917]: https://github.com/ergebnis/php-cs-fixer-config/pull/917
[#918]: https://github.com/ergebnis/php-cs-fixer-config/pull/918
[#922]: https://github.com/ergebnis/php-cs-fixer-config/pull/922

[@dependabot]: https://github.com/apps/dependabot
[@linuxjuggler]: https://github.com/linuxjuggler
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php81.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public static function create(): RuleSet
],
'class_attributes_separation' => [
'elements' => [
'case' => 'only_if_meta',
'const' => 'only_if_meta',
'method' => 'one',
'property' => 'only_if_meta',
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php82.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public static function create(): RuleSet
],
'class_attributes_separation' => [
'elements' => [
'case' => 'only_if_meta',
'const' => 'only_if_meta',
'method' => 'one',
'property' => 'only_if_meta',
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php83.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public static function create(): RuleSet
],
'class_attributes_separation' => [
'elements' => [
'case' => 'only_if_meta',
'const' => 'only_if_meta',
'method' => 'one',
'property' => 'only_if_meta',
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php81Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ protected function expectedRules(): Rules
],
'class_attributes_separation' => [
'elements' => [
'case' => 'only_if_meta',
'const' => 'only_if_meta',
'method' => 'one',
'property' => 'only_if_meta',
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php82Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ protected function expectedRules(): Rules
],
'class_attributes_separation' => [
'elements' => [
'case' => 'only_if_meta',
'const' => 'only_if_meta',
'method' => 'one',
'property' => 'only_if_meta',
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php83Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ protected function expectedRules(): Rules
],
'class_attributes_separation' => [
'elements' => [
'case' => 'only_if_meta',
'const' => 'only_if_meta',
'method' => 'one',
'property' => 'only_if_meta',
Expand Down

0 comments on commit 80b270c

Please sign in to comment.