]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - plugins/piwik/piwik.php
Apply PHP Code Beautifier on source code for linter automatic fixes
[github/shaarli/Shaarli.git] / plugins / piwik / piwik.php
index ca00c2be71f33dd566be43fb2fb2f791d41e26cf..efea8610fc01cfa7c2e71b275f41f2955cb043be 100644 (file)
@@ -1,9 +1,12 @@
 <?php
+
 /**
  * Piwik plugin.
  * Adds tracking code on each page.
  */
 
+use Shaarli\Plugin\PluginManager;
+
 /**
  * Initialization function.
  * It will be called when the plugin is loaded.
@@ -20,7 +23,7 @@ function piwik_init($conf)
     if (empty($piwikUrl) || empty($piwikSiteid)) {
         $error = t('Piwik plugin error: ' .
             'Please define PIWIK_URL and PIWIK_SITEID in the plugin administration page.');
-        return array($error);
+        return [$error];
     }
 }