diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-02-20 16:33:13 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-02-20 16:33:13 +0100 |
| commit | 60aad702ef1a6922e7cbb68d83bcbe35a8b368f0 (patch) | |
| tree | 0fe2a20410d75d2df23ea41fe3e8f5e6e62321ad /public/inc/dotenv.php | |
| parent | 73a5c7fae9ffbe9ada721148c8c454a643aceebe (diff) | |
style: fix some warnings
Diffstat (limited to 'public/inc/dotenv.php')
| -rw-r--r-- | public/inc/dotenv.php | 16 |
1 files changed, 12 insertions, 4 deletions
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 @@ <?php /** - * Dotenv helper. + * Dotenv helpers. + * php version 7.4 + * + * @category Controller + * @package DAP + * @author Armand Philippot <contact@armandphilippot.com> + * @copyright 2022 Armand Philippot + * @license MIT <https://opensource.org/licenses/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 ''; } |
