From f946f88e671d32ebd56166ba5149bf408ca09f1d Mon Sep 17 00:00:00 2001 From: Blaize M Kaye Date: Thu, 29 Aug 2024 09:31:09 +1000 Subject: [PATCH] Spaces and comments --- src/LagoonCommands.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/LagoonCommands.php b/src/LagoonCommands.php index 889ab23..0091cab 100644 --- a/src/LagoonCommands.php +++ b/src/LagoonCommands.php @@ -278,6 +278,13 @@ public function getLagoonEnvs() { private function isLagoonEnvironment() { return !empty(getenv("LAGOON")); } + + /** + * This should be run before any Lagoon commands. + * Checks whether we have a valid environment before running. + * + * @return void + */ private function preCommandChecks() { if($this->isLagoonEnvironment() == FALSE) { throw new CommandFailedException(dt("Attempting to run a Lagoon command in a non-Lagoon environment."));