From 4e15145b0d1ae697717ea7e2b0edab0fa8230b7c Mon Sep 17 00:00:00 2001 From: MGatner Date: Tue, 3 Sep 2019 15:24:04 -0400 Subject: [PATCH] Add conditional `defined()` checks --- app/Config/Constants.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Config/Constants.php b/app/Config/Constants.php index 3f7cef1b8c6f..b25f71cdcc26 100644 --- a/app/Config/Constants.php +++ b/app/Config/Constants.php @@ -11,7 +11,7 @@ // NOTE: changing this will require manually modifying the // existing namespaces of App\* namespaced-classes. // -define('APP_NAMESPACE', 'App'); +defined('APP_NAMESPACE') || define('APP_NAMESPACE', 'App'); /* |-------------------------------------------------------------------------- @@ -21,7 +21,7 @@ | The path that Composer's autoload file is expected to live. By default, | the vendor folder is in the Root directory, but you can customize that here. */ -define('COMPOSER_PATH', ROOTPATH . 'vendor/autoload.php'); +defined('COMPOSER_PATH') || define('COMPOSER_PATH', ROOTPATH . 'vendor/autoload.php'); /* |--------------------------------------------------------------------------