From 60aad702ef1a6922e7cbb68d83bcbe35a8b368f0 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sun, 20 Feb 2022 16:33:13 +0100 Subject: style: fix some warnings --- public/inc/dotenv.php | 16 ++++++++++++---- public/inc/tracker.php | 9 ++++++++- 2 files changed, 20 insertions(+), 5 deletions(-) (limited to 'public/inc') diff --git a/public/inc/dotenv.php b/public/inc/dotenv.php index eb297e8..e5f2d61 100644 --- a/public/inc/dotenv.php +++ b/public/inc/dotenv.php @@ -1,6 +1,14 @@ + * @copyright 2022 Armand Philippot + * @license MIT + * @link https://demo.armandphilippot.com/ */ /** @@ -13,11 +21,11 @@ function dap_get_current_env() { if (file_exists(dirname(__DIR__) . '/vendor/autoload.php')) { - require_once dirname(__DIR__) . '/vendor/autoload.php'; + include_once dirname(__DIR__) . '/vendor/autoload.php'; $dotenv = Dotenv\Dotenv::createImmutable(dirname(__DIR__)); $dotenv->safeLoad(); - $current_env = $_ENV['CURRENT_ENV']; - return $current_env; + + return $_ENV['CURRENT_ENV']; } else { return ''; } diff --git a/public/inc/tracker.php b/public/inc/tracker.php index 12aaa3c..b78cef7 100644 --- a/public/inc/tracker.php +++ b/public/inc/tracker.php @@ -1,12 +1,19 @@ + * @copyright 2022 Armand Philippot + * @license MIT + * @link https://demo.armandphilippot.com/ */ ?>