From baf8ab3f9d3abbfd7b19019120f0d00196352ecd Mon Sep 17 00:00:00 2001 From: Jasper Tey Date: Sat, 18 May 2024 11:58:34 -0400 Subject: [PATCH] Refactor OverridesHandle to HandleHooks --- .../Concerns/{OverridesHandle.php => HandleHooks.php} | 2 +- src/Commands/Concerns/ResolvesDomainFromInput.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/Commands/Concerns/{OverridesHandle.php => HandleHooks.php} (93%) diff --git a/src/Commands/Concerns/OverridesHandle.php b/src/Commands/Concerns/HandleHooks.php similarity index 93% rename from src/Commands/Concerns/OverridesHandle.php rename to src/Commands/Concerns/HandleHooks.php index 0240142..9a1ed27 100644 --- a/src/Commands/Concerns/OverridesHandle.php +++ b/src/Commands/Concerns/HandleHooks.php @@ -2,7 +2,7 @@ namespace Lunarstorm\LaravelDDD\Commands\Concerns; -trait OverridesHandle +trait HandleHooks { protected function beforeHandle() { diff --git a/src/Commands/Concerns/ResolvesDomainFromInput.php b/src/Commands/Concerns/ResolvesDomainFromInput.php index 9a4ddd8..5258ab3 100644 --- a/src/Commands/Concerns/ResolvesDomainFromInput.php +++ b/src/Commands/Concerns/ResolvesDomainFromInput.php @@ -11,7 +11,7 @@ trait ResolvesDomainFromInput { use CanPromptForDomain, - OverridesHandle; + HandleHooks; protected $nameIsAbsolute = false; @@ -91,7 +91,7 @@ protected function beforeHandle() }; // If the domain is not set, prompt for it - if (! $this->domain) { + if (!$this->domain) { $this->domain = new Domain($this->promptForDomainName()); }