Skip to content

Commit 0b00b01

Browse files
committed
CS Fixing classes
1 parent 5ef4b5e commit 0b00b01

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/AppendableIteratorAcceptanceResultBucket.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
* @implements Contract\AcceptanceResultBucketInterface<Type>
1313
*
14-
* @deprecated This class is too complex and breaks the Least-surprise principle.
14+
* @deprecated this class is too complex and breaks the Least-surprise principle
1515
*/
1616
final readonly class AppendableIteratorAcceptanceResultBucket implements Contract\AcceptanceResultBucketInterface
1717
{

src/AppendableIteratorRejectionResultBucket.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
* @implements Contract\RejectionResultBucketInterface<Type>
1313
*
14-
* @deprecated This class is too complex and breaks the Least-surprise principle.
14+
* @deprecated this class is too complex and breaks the Least-surprise principle
1515
*/
1616
final readonly class AppendableIteratorRejectionResultBucket implements Contract\RejectionResultBucketInterface
1717
{

src/ComplexResultBucket.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,14 @@ public function reasons(): ?array
4949
{
5050
return array_reduce(
5151
array_map(
52-
fn(Contract\RejectionResultBucketInterface $rejection): ?array => $rejection->reasons(),
52+
fn (Contract\RejectionResultBucketInterface $rejection): ?array => $rejection->reasons(),
5353
$this->rejections
5454
),
5555
function (array $carry, ?array $item): array {
56-
if ($item !== null) {
56+
if (null !== $item) {
5757
array_push($carry, ...$item);
5858
}
59+
5960
return $carry;
6061
},
6162
[]
@@ -66,13 +67,14 @@ public function exceptions(): ?array
6667
{
6768
return array_reduce(
6869
array_map(
69-
fn(Contract\RejectionResultBucketInterface $rejection): ?array => $rejection->exceptions(),
70+
fn (Contract\RejectionResultBucketInterface $rejection): ?array => $rejection->exceptions(),
7071
$this->rejections
7172
),
7273
function (array $carry, ?array $item): array {
73-
if ($item !== null) {
74+
if (null !== $item) {
7475
array_push($carry, ...$item);
7576
}
77+
7678
return $carry;
7779
},
7880
[]

0 commit comments

Comments
 (0)