From 37094ffc1fcbc5c1a47b51bd6c76a204bb246642 Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Sun, 17 Mar 2024 13:59:21 -0400 Subject: [PATCH] Best of both worlds because of mockery --- app/Repositories/Daemon/DaemonRepository.php | 4 +++- app/Transformers/Api/Application/BaseTransformer.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/Repositories/Daemon/DaemonRepository.php b/app/Repositories/Daemon/DaemonRepository.php index 84f6bbda8..3d0f2f043 100644 --- a/app/Repositories/Daemon/DaemonRepository.php +++ b/app/Repositories/Daemon/DaemonRepository.php @@ -23,8 +23,10 @@ abstract class DaemonRepository /** * Set the server model this request is stemming from. + * + * @return static */ - public function setServer(Server $server): static + public function setServer(Server $server): self { $this->server = $server; diff --git a/app/Transformers/Api/Application/BaseTransformer.php b/app/Transformers/Api/Application/BaseTransformer.php index 8052c20ae..784822272 100644 --- a/app/Transformers/Api/Application/BaseTransformer.php +++ b/app/Transformers/Api/Application/BaseTransformer.php @@ -49,8 +49,10 @@ abstract class BaseTransformer extends TransformerAbstract /** * Returns a new transformer instance with the request set on the instance. + * + * @return static */ - public static function fromRequest(Request $request): static + public static function fromRequest(Request $request): self { return app(static::class)->setRequest($request); }