aboutsummaryrefslogtreecommitdiffstats
path: root/public/inc
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-02-20 16:33:13 +0100
committerArmand Philippot <git@armandphilippot.com>2022-02-20 16:33:13 +0100
commit60aad702ef1a6922e7cbb68d83bcbe35a8b368f0 (patch)
tree0fe2a20410d75d2df23ea41fe3e8f5e6e62321ad /public/inc
parent73a5c7fae9ffbe9ada721148c8c454a643aceebe (diff)
style: fix some warnings
Diffstat (limited to 'public/inc')
-rw-r--r--public/inc/dotenv.php16
-rw-r--r--public/inc/tracker.php9
2 files changed, 20 insertions, 5 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 '';
}
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 @@
<?php
/**
* Matomo tracking code.
+ * 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/
*/
?>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
- /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDoNotTrack", true]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);