Skip to content

Commit 4913af4

Browse files
committed
Revert "clean up cs fix"
This reverts commit b847bf6.
1 parent b847bf6 commit 4913af4

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

tests/AtLeastTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public function testTwice(array $data, callable $filter, bool $expected): void
5353
);
5454
}
5555

56+
// phpcs:disable
5657
public static function twiceDataProvider(): Iterator
5758
{
5859
yield [
@@ -68,15 +69,16 @@ public static function twiceDataProvider(): Iterator
6869
yield [
6970
['abc', 'def', 'some test'],
7071
static fn(string $datum, int $key): bool => $datum !== 'abc' && $key > 0,
71-
true,
72+
true
7273
];
7374
yield [
7475
['abc', 'def', 'some test'],
7576
static fn(string $datum, int $key): bool => $datum !== 'abc' && $key > 1,
76-
false,
77+
false
7778
];
7879
}
7980

81+
// phpcs:enable
8082
#[DataProvider('timesDataProvider')]
8183
public function testTimes(array $data, callable $filter, bool $expected): void
8284
{

tests/OnlyTest.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public function testOnce(array $data, callable $filter, bool $expected): void
2121
);
2222
}
2323

24+
// phpcs:disable
2425
public static function onceDataProvider(): Iterator
2526
{
2627
yield [
@@ -36,15 +37,16 @@ public static function onceDataProvider(): Iterator
3637
yield [
3738
['abc', 'def', 'some test'],
3839
static fn(string $datum, int $key): bool => $datum === 'def' && $key === 1,
39-
true,
40+
true
4041
];
4142
yield [
4243
['abc', 'def', 'some test'],
4344
static fn(string $datum, int $key): bool => $datum === 'def' && $key === 2,
44-
false,
45+
false
4546
];
4647
}
4748

49+
// phpcs:enable
4850
#[DataProvider('twiceDataProvider')]
4951
public function testTwice(array $data, callable $filter, bool $expected): void
5052
{
@@ -54,6 +56,7 @@ public function testTwice(array $data, callable $filter, bool $expected): void
5456
);
5557
}
5658

59+
// phpcs:disable
5760
public static function twiceDataProvider(): Iterator
5861
{
5962
yield [
@@ -69,15 +72,16 @@ public static function twiceDataProvider(): Iterator
6972
yield [
7073
['abc', 'def', 'some test'],
7174
static fn(string $datum, int $key): bool => $datum !== 'abc' && $key > 0,
72-
true,
75+
true
7376
];
7477
yield [
7578
['abc', 'def', 'some test'],
7679
static fn(string $datum, int $key): bool => $datum !== 'abc' && $key > 1,
77-
false,
80+
false
7881
];
7982
}
8083

84+
// phpcs:enable
8185
#[DataProvider('timesDataProvider')]
8286
public function testTimes(array $data, callable $filter, bool $expected): void
8387
{

0 commit comments

Comments
 (0)