From b6d783c7bf2c181039d094849a7e85e804d38f9b Mon Sep 17 00:00:00 2001 From: sebprt Date: Mon, 30 Oct 2023 11:44:35 +0100 Subject: [PATCH] Ran php-cs-fixer --- src/NullRejection.php | 2 +- src/RejectedItemException.php | 4 +--- src/RejectionInterface.php | 2 +- src/RunnableInterface.php | 4 +--- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/NullRejection.php b/src/NullRejection.php index 63fd84c..b8f026b 100644 --- a/src/NullRejection.php +++ b/src/NullRejection.php @@ -12,7 +12,7 @@ public function initialize(): void } /** @param non-empty-array|object $rejection */ - public function reject(object|array $rejection, null|\Throwable $exception = null, null|string $reason = null): void + public function reject(object|array $rejection, \Throwable $exception = null, string $reason = null): void { // NOOP } 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 41bc076..b25353e 100644 --- a/src/RejectionInterface.php +++ b/src/RejectionInterface.php @@ -9,7 +9,7 @@ interface RejectionInterface public function initialize(): void; /** @param non-empty-array|object $rejection */ - public function reject(object|array $rejection, null|\Throwable $exception = null, null|string $reason = null): void; + public function reject(object|array $rejection, \Throwable $exception = null, string $reason = 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 {}