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; }