From b5fe3ef54e32985e9e4e509fbee3e8b291dd221a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Planchat?= Date: Mon, 13 Nov 2023 12:28:31 +0100 Subject: [PATCH] Run CS-Fixer --- src/RejectedItemException.php | 4 +--- src/RejectionInterface.php | 2 +- src/RunnableInterface.php | 4 +--- src/StepCodeInterface.php | 4 +--- src/StepRejectionInterface.php | 2 +- 5 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/RejectedItemException.php b/src/RejectedItemException.php index bbc3f47..cbd61c1 100644 --- a/src/RejectedItemException.php +++ b/src/RejectedItemException.php @@ -4,6 +4,4 @@ namespace Kiboko\Contract\Pipeline; -final class RejectedItemException extends \RuntimeException -{ -} +final class RejectedItemException extends \RuntimeException {} diff --git a/src/RejectionInterface.php b/src/RejectionInterface.php index 63f18ec..4d6b4cd 100644 --- a/src/RejectionInterface.php +++ b/src/RejectionInterface.php @@ -11,7 +11,7 @@ public function initialize(): void; /** @param non-empty-array|object $rejection */ public function reject(StepCodeInterface $step, array|object $rejection, \Throwable $exception = null): void; - public function rejectWithReason(StepCodeInterface $step, object|array $rejection, string $reason, null|\Throwable $exception = null): void; + public function rejectWithReason(StepCodeInterface $step, array|object $rejection, string $reason, \Throwable $exception = null): void; public function teardown(): void; } diff --git a/src/RunnableInterface.php b/src/RunnableInterface.php index 07695fe..835e2e1 100644 --- a/src/RunnableInterface.php +++ b/src/RunnableInterface.php @@ -7,6 +7,4 @@ use Kiboko\Contract\Satellite\RunnableInterface as SatelliteRunableInterface; /** @deprecated Use \Kiboko\Contract\Job\RunnableInterface instead */ -interface RunnableInterface extends SatelliteRunableInterface -{ -} +interface RunnableInterface extends SatelliteRunableInterface {} diff --git a/src/StepCodeInterface.php b/src/StepCodeInterface.php index d860c50..a5c48b0 100644 --- a/src/StepCodeInterface.php +++ b/src/StepCodeInterface.php @@ -4,6 +4,4 @@ namespace Kiboko\Contract\Pipeline; -interface StepCodeInterface extends \Stringable -{ -} +interface StepCodeInterface extends \Stringable {} diff --git a/src/StepRejectionInterface.php b/src/StepRejectionInterface.php index a18b8df..bc58834 100644 --- a/src/StepRejectionInterface.php +++ b/src/StepRejectionInterface.php @@ -11,7 +11,7 @@ public function initialize(): void; /** @param non-empty-array|object $rejection */ public function reject(array|object $rejection, \Throwable $exception = null): void; - public function rejectWithReason(object|array $rejection, string $reason, null|\Throwable $exception = null): void; + public function rejectWithReason(array|object $rejection, string $reason, \Throwable $exception = null): void; public function teardown(): void; }