Skip to content

Commit 475bbcc

Browse files
authored
Merge pull request #1179 from ergebnis/feature/php-unit-data-provider-method-order
Enhancement: Enable and configure `php_unit_data_provider_method_order` fixer
2 parents 922ca1d + 400b994 commit 475bbcc

29 files changed

+86
-28
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ For a full diff see [`6.43.1...main`][6.43.1...main].
1212

1313
- Updated `friendsofphp/php-cs-fixer` ([#1177]), by [@dependabot]
1414
- Added `constant` to `elements` option of `type_declaration_spaces` fixer ([#1178]), by [@localheinz]
15+
- Enabled and configured `php_unit_data_provider_method_order` fixer ([#1179]), by [@localheinz]
1516

1617
## [`6.43.1`][6.43.1]
1718

@@ -1884,6 +1885,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
18841885
[#1173]: https://github.com/ergebnis/php-cs-fixer-config/pull/1173
18851886
[#1177]: https://github.com/ergebnis/php-cs-fixer-config/pull/1177
18861887
[#1178]: https://github.com/ergebnis/php-cs-fixer-config/pull/1178
1888+
[#1179]: https://github.com/ergebnis/php-cs-fixer-config/pull/1179
18871889

18881890
[@dependabot]: https://github.com/apps/dependabot
18891891
[@linuxjuggler]: https://github.com/linuxjuggler

src/RuleSet/Php53.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,9 @@ public static function create(): RuleSet
487487
'assertSame',
488488
],
489489
],
490-
'php_unit_data_provider_method_order' => false,
490+
'php_unit_data_provider_method_order' => [
491+
'placement' => 'after',
492+
],
491493
'php_unit_data_provider_name' => false,
492494
'php_unit_data_provider_return_type' => false,
493495
'php_unit_data_provider_static' => [

src/RuleSet/Php54.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,9 @@ public static function create(): RuleSet
488488
'assertSame',
489489
],
490490
],
491-
'php_unit_data_provider_method_order' => false,
491+
'php_unit_data_provider_method_order' => [
492+
'placement' => 'after',
493+
],
492494
'php_unit_data_provider_name' => false,
493495
'php_unit_data_provider_return_type' => false,
494496
'php_unit_data_provider_static' => [

src/RuleSet/Php55.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,9 @@ public static function create(): RuleSet
494494
'assertSame',
495495
],
496496
],
497-
'php_unit_data_provider_method_order' => false,
497+
'php_unit_data_provider_method_order' => [
498+
'placement' => 'after',
499+
],
498500
'php_unit_data_provider_name' => false,
499501
'php_unit_data_provider_return_type' => false,
500502
'php_unit_data_provider_static' => [

src/RuleSet/Php56.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,9 @@ public static function create(): RuleSet
494494
'assertSame',
495495
],
496496
],
497-
'php_unit_data_provider_method_order' => false,
497+
'php_unit_data_provider_method_order' => [
498+
'placement' => 'after',
499+
],
498500
'php_unit_data_provider_name' => false,
499501
'php_unit_data_provider_return_type' => false,
500502
'php_unit_data_provider_static' => [

src/RuleSet/Php70.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,9 @@ public static function create(): RuleSet
494494
'assertSame',
495495
],
496496
],
497-
'php_unit_data_provider_method_order' => false,
497+
'php_unit_data_provider_method_order' => [
498+
'placement' => 'after',
499+
],
498500
'php_unit_data_provider_name' => false,
499501
'php_unit_data_provider_return_type' => false,
500502
'php_unit_data_provider_static' => [

src/RuleSet/Php71.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,9 @@ public static function create(): RuleSet
494494
'assertSame',
495495
],
496496
],
497-
'php_unit_data_provider_method_order' => false,
497+
'php_unit_data_provider_method_order' => [
498+
'placement' => 'after',
499+
],
498500
'php_unit_data_provider_name' => false,
499501
'php_unit_data_provider_return_type' => true,
500502
'php_unit_data_provider_static' => [

src/RuleSet/Php72.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,9 @@ public static function create(): RuleSet
494494
'assertSame',
495495
],
496496
],
497-
'php_unit_data_provider_method_order' => false,
497+
'php_unit_data_provider_method_order' => [
498+
'placement' => 'after',
499+
],
498500
'php_unit_data_provider_name' => false,
499501
'php_unit_data_provider_return_type' => true,
500502
'php_unit_data_provider_static' => [

src/RuleSet/Php73.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,9 @@ public static function create(): RuleSet
494494
'assertSame',
495495
],
496496
],
497-
'php_unit_data_provider_method_order' => false,
497+
'php_unit_data_provider_method_order' => [
498+
'placement' => 'after',
499+
],
498500
'php_unit_data_provider_name' => false,
499501
'php_unit_data_provider_return_type' => true,
500502
'php_unit_data_provider_static' => [

src/RuleSet/Php74.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,9 @@ public static function create(): RuleSet
494494
'assertSame',
495495
],
496496
],
497-
'php_unit_data_provider_method_order' => false,
497+
'php_unit_data_provider_method_order' => [
498+
'placement' => 'after',
499+
],
498500
'php_unit_data_provider_name' => false,
499501
'php_unit_data_provider_return_type' => true,
500502
'php_unit_data_provider_static' => [

src/RuleSet/Php80.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,9 @@ public static function create(): RuleSet
509509
'assertSame',
510510
],
511511
],
512-
'php_unit_data_provider_method_order' => false,
512+
'php_unit_data_provider_method_order' => [
513+
'placement' => 'after',
514+
],
513515
'php_unit_data_provider_name' => false,
514516
'php_unit_data_provider_return_type' => true,
515517
'php_unit_data_provider_static' => [

src/RuleSet/Php81.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,9 @@ public static function create(): RuleSet
511511
'assertSame',
512512
],
513513
],
514-
'php_unit_data_provider_method_order' => false,
514+
'php_unit_data_provider_method_order' => [
515+
'placement' => 'after',
516+
],
515517
'php_unit_data_provider_name' => false,
516518
'php_unit_data_provider_return_type' => true,
517519
'php_unit_data_provider_static' => [

src/RuleSet/Php82.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,9 @@ public static function create(): RuleSet
511511
'assertSame',
512512
],
513513
],
514-
'php_unit_data_provider_method_order' => false,
514+
'php_unit_data_provider_method_order' => [
515+
'placement' => 'after',
516+
],
515517
'php_unit_data_provider_name' => false,
516518
'php_unit_data_provider_return_type' => true,
517519
'php_unit_data_provider_static' => [

src/RuleSet/Php83.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,9 @@ public static function create(): RuleSet
511511
'assertSame',
512512
],
513513
],
514-
'php_unit_data_provider_method_order' => false,
514+
'php_unit_data_provider_method_order' => [
515+
'placement' => 'after',
516+
],
515517
'php_unit_data_provider_name' => false,
516518
'php_unit_data_provider_return_type' => true,
517519
'php_unit_data_provider_static' => [

src/RuleSet/Php84.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,9 @@ public static function create(): RuleSet
511511
'assertSame',
512512
],
513513
],
514-
'php_unit_data_provider_method_order' => false,
514+
'php_unit_data_provider_method_order' => [
515+
'placement' => 'after',
516+
],
515517
'php_unit_data_provider_name' => false,
516518
'php_unit_data_provider_return_type' => true,
517519
'php_unit_data_provider_static' => [

test/Unit/RuleSet/Php53Test.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,9 @@ protected function expectedRules(): Rules
510510
'assertSame',
511511
],
512512
],
513-
'php_unit_data_provider_method_order' => false,
513+
'php_unit_data_provider_method_order' => [
514+
'placement' => 'after',
515+
],
514516
'php_unit_data_provider_name' => false,
515517
'php_unit_data_provider_return_type' => false,
516518
'php_unit_data_provider_static' => [

test/Unit/RuleSet/Php54Test.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,9 @@ protected function expectedRules(): Rules
511511
'assertSame',
512512
],
513513
],
514-
'php_unit_data_provider_method_order' => false,
514+
'php_unit_data_provider_method_order' => [
515+
'placement' => 'after',
516+
],
515517
'php_unit_data_provider_name' => false,
516518
'php_unit_data_provider_return_type' => false,
517519
'php_unit_data_provider_static' => [

test/Unit/RuleSet/Php55Test.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,9 @@ protected function expectedRules(): Rules
517517
'assertSame',
518518
],
519519
],
520-
'php_unit_data_provider_method_order' => false,
520+
'php_unit_data_provider_method_order' => [
521+
'placement' => 'after',
522+
],
521523
'php_unit_data_provider_name' => false,
522524
'php_unit_data_provider_return_type' => false,
523525
'php_unit_data_provider_static' => [

test/Unit/RuleSet/Php56Test.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,9 @@ protected function expectedRules(): Rules
517517
'assertSame',
518518
],
519519
],
520-
'php_unit_data_provider_method_order' => false,
520+
'php_unit_data_provider_method_order' => [
521+
'placement' => 'after',
522+
],
521523
'php_unit_data_provider_name' => false,
522524
'php_unit_data_provider_return_type' => false,
523525
'php_unit_data_provider_static' => [

test/Unit/RuleSet/Php70Test.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,9 @@ protected function expectedRules(): Rules
517517
'assertSame',
518518
],
519519
],
520-
'php_unit_data_provider_method_order' => false,
520+
'php_unit_data_provider_method_order' => [
521+
'placement' => 'after',
522+
],
521523
'php_unit_data_provider_name' => false,
522524
'php_unit_data_provider_return_type' => false,
523525
'php_unit_data_provider_static' => [

test/Unit/RuleSet/Php71Test.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,9 @@ protected function expectedRules(): Rules
517517
'assertSame',
518518
],
519519
],
520-
'php_unit_data_provider_method_order' => false,
520+
'php_unit_data_provider_method_order' => [
521+
'placement' => 'after',
522+
],
521523
'php_unit_data_provider_name' => false,
522524
'php_unit_data_provider_return_type' => true,
523525
'php_unit_data_provider_static' => [

test/Unit/RuleSet/Php72Test.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,9 @@ protected function expectedRules(): Rules
517517
'assertSame',
518518
],
519519
],
520-
'php_unit_data_provider_method_order' => false,
520+
'php_unit_data_provider_method_order' => [
521+
'placement' => 'after',
522+
],
521523
'php_unit_data_provider_name' => false,
522524
'php_unit_data_provider_return_type' => true,
523525
'php_unit_data_provider_static' => [

test/Unit/RuleSet/Php73Test.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,9 @@ protected function expectedRules(): Rules
517517
'assertSame',
518518
],
519519
],
520-
'php_unit_data_provider_method_order' => false,
520+
'php_unit_data_provider_method_order' => [
521+
'placement' => 'after',
522+
],
521523
'php_unit_data_provider_name' => false,
522524
'php_unit_data_provider_return_type' => true,
523525
'php_unit_data_provider_static' => [

test/Unit/RuleSet/Php74Test.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,9 @@ protected function expectedRules(): Rules
517517
'assertSame',
518518
],
519519
],
520-
'php_unit_data_provider_method_order' => false,
520+
'php_unit_data_provider_method_order' => [
521+
'placement' => 'after',
522+
],
521523
'php_unit_data_provider_name' => false,
522524
'php_unit_data_provider_return_type' => true,
523525
'php_unit_data_provider_static' => [

test/Unit/RuleSet/Php80Test.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,9 @@ protected function expectedRules(): Rules
532532
'assertSame',
533533
],
534534
],
535-
'php_unit_data_provider_method_order' => false,
535+
'php_unit_data_provider_method_order' => [
536+
'placement' => 'after',
537+
],
536538
'php_unit_data_provider_name' => false,
537539
'php_unit_data_provider_return_type' => true,
538540
'php_unit_data_provider_static' => [

test/Unit/RuleSet/Php81Test.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,9 @@ protected function expectedRules(): Rules
534534
'assertSame',
535535
],
536536
],
537-
'php_unit_data_provider_method_order' => false,
537+
'php_unit_data_provider_method_order' => [
538+
'placement' => 'after',
539+
],
538540
'php_unit_data_provider_name' => false,
539541
'php_unit_data_provider_return_type' => true,
540542
'php_unit_data_provider_static' => [

test/Unit/RuleSet/Php82Test.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,9 @@ protected function expectedRules(): Rules
534534
'assertSame',
535535
],
536536
],
537-
'php_unit_data_provider_method_order' => false,
537+
'php_unit_data_provider_method_order' => [
538+
'placement' => 'after',
539+
],
538540
'php_unit_data_provider_name' => false,
539541
'php_unit_data_provider_return_type' => true,
540542
'php_unit_data_provider_static' => [

test/Unit/RuleSet/Php83Test.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,9 @@ protected function expectedRules(): Rules
534534
'assertSame',
535535
],
536536
],
537-
'php_unit_data_provider_method_order' => false,
537+
'php_unit_data_provider_method_order' => [
538+
'placement' => 'after',
539+
],
538540
'php_unit_data_provider_name' => false,
539541
'php_unit_data_provider_return_type' => true,
540542
'php_unit_data_provider_static' => [

test/Unit/RuleSet/Php84Test.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,9 @@ protected function expectedRules(): Rules
534534
'assertSame',
535535
],
536536
],
537-
'php_unit_data_provider_method_order' => false,
537+
'php_unit_data_provider_method_order' => [
538+
'placement' => 'after',
539+
],
538540
'php_unit_data_provider_name' => false,
539541
'php_unit_data_provider_return_type' => true,
540542
'php_unit_data_provider_static' => [

0 commit comments

Comments
 (0)