From a7e8ba093797d60301d5ffe479f406cfef1a62f7 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Tue, 11 Dec 2018 10:17:45 +0100
Subject: [PATCH] Implement method isLocalDevMode

---
 BaseHandler.php          | 10 +++++++++-
 BaseHandlerInterface.php |  5 +++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/BaseHandler.php b/BaseHandler.php
index d74e59b..d490a59 100644
--- a/BaseHandler.php
+++ b/BaseHandler.php
@@ -106,12 +106,20 @@ abstract class BaseHandler implements BaseHandlerInterface {
     return FALSE;
   }
 
+  /**
+   * {@inheritdoc}
+   */
+  public function isLocalDevMode() {
+    $local_dev_mode = getenv('LAKEDROPS_DEV_ENV');
+    return !empty($local_dev_mode);
+  }
+
   /**
    * {@inheritdoc}
    */
   public function isCiContext() {
     $ci_project_dir = getenv('CI_PROJECT_DIR');
-    return !empty($ci_project_dir );
+    return !empty($ci_project_dir);
   }
 
   /**
diff --git a/BaseHandlerInterface.php b/BaseHandlerInterface.php
index 372847b..7f485bb 100644
--- a/BaseHandlerInterface.php
+++ b/BaseHandlerInterface.php
@@ -46,6 +46,11 @@ interface BaseHandlerInterface {
    */
   public function isDevMode();
 
+  /**
+   * @return bool
+   */
+  public function isLocalDevMode();
+
   /**
    * Determine if the current process runs in a CI/CD context.
    *
-- 
GitLab