From 2c040c5b1f240d1a3ebe6db46d2e11e0f1804909 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Tue, 17 Feb 2026 17:45:50 +0000 Subject: [PATCH] chore: style --- src/Expectation.php | 2 +- src/Expectations/OppositeExpectation.php | 4 ++-- src/Plugins/Parallel.php | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Expectation.php b/src/Expectation.php index 2fbbc1ee..4d791e95 100644 --- a/src/Expectation.php +++ b/src/Expectation.php @@ -864,7 +864,7 @@ final class Expectation return Targeted::make( $this, - fn(ObjectDescription $object): bool => array_all($interfaces, fn($interface): bool => isset($object->reflectionClass) && $object->reflectionClass->implementsInterface($interface)), + fn (ObjectDescription $object): bool => array_all($interfaces, fn ($interface): bool => isset($object->reflectionClass) && $object->reflectionClass->implementsInterface($interface)), "to implement '".implode("', '", $interfaces)."'", FileLineFinder::where(fn (string $line): bool => str_contains($line, 'class')), ); diff --git a/src/Expectations/OppositeExpectation.php b/src/Expectations/OppositeExpectation.php index 9de449c8..657f0140 100644 --- a/src/Expectations/OppositeExpectation.php +++ b/src/Expectations/OppositeExpectation.php @@ -576,7 +576,7 @@ final readonly class OppositeExpectation return Targeted::make( $original, - fn(ObjectDescription $object): bool => array_all($traits, fn($trait): bool => !(isset($object->reflectionClass) && in_array($trait, $object->reflectionClass->getTraitNames(), true))), + fn (ObjectDescription $object): bool => array_all($traits, fn ($trait): bool => ! (isset($object->reflectionClass) && in_array($trait, $object->reflectionClass->getTraitNames(), true))), "not to use traits '".implode("', '", $traits)."'", FileLineFinder::where(fn (string $line): bool => str_contains($line, 'class')), ); @@ -596,7 +596,7 @@ final readonly class OppositeExpectation return Targeted::make( $original, - fn(ObjectDescription $object): bool => array_all($interfaces, fn($interface): bool => !(isset($object->reflectionClass) && $object->reflectionClass->implementsInterface($interface))), + fn (ObjectDescription $object): bool => array_all($interfaces, fn ($interface): bool => ! (isset($object->reflectionClass) && $object->reflectionClass->implementsInterface($interface))), "not to implement '".implode("', '", $interfaces)."'", FileLineFinder::where(fn (string $line): bool => str_contains($line, 'class')), ); diff --git a/src/Plugins/Parallel.php b/src/Plugins/Parallel.php index 5e13a430..75b77bb4 100644 --- a/src/Plugins/Parallel.php +++ b/src/Plugins/Parallel.php @@ -175,7 +175,8 @@ final class Parallel implements HandlesArguments private function hasArgumentsThatWouldBeFasterWithoutParallel(): bool { $arguments = new ArgvInput; - return array_any(self::UNSUPPORTED_ARGUMENTS, fn(string|array $unsupportedArgument): bool => $arguments->hasParameterOption($unsupportedArgument)); + + return array_any(self::UNSUPPORTED_ARGUMENTS, fn (string|array $unsupportedArgument): bool => $arguments->hasParameterOption($unsupportedArgument)); } /**