diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-09-30 09:37:32 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-09-30 09:37:32 +0400 |
commit | a00487b0b841c4b15463b591c7f62176c4b84d15 (patch) | |
tree | 6eb893ce356a4740e044c9cdadaf84ffb2095b9d /core/Piwik.php | |
parent | 0edef3332289a7cbe54b58084b967907d1086d29 (diff) |
coding style fixes, some PHPStorm inspection fixes, improved readability of code, few refactorings, all as part of our code cleanup strategy
Diffstat (limited to 'core/Piwik.php')
-rw-r--r-- | core/Piwik.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/Piwik.php b/core/Piwik.php index c00d5e42e9..ea49b72675 100644 --- a/core/Piwik.php +++ b/core/Piwik.php @@ -9,7 +9,6 @@ namespace Piwik; use Exception; -use Piwik\Common; use Piwik\Db\Adapter; use Piwik\Db\Schema; use Piwik\Db; @@ -135,7 +134,7 @@ class Piwik // changes made to this code should be mirrored in plugins/CoreAdminHome/javascripts/jsTrackingGenerator.js var generateJsCode $jsCode = file_get_contents(PIWIK_INCLUDE_PATH . "/plugins/Morpheus/templates/javascriptCode.tpl"); $jsCode = htmlentities($jsCode); - if(substr($piwikUrl, 0, 4) !== 'http') { + if (substr($piwikUrl, 0, 4) !== 'http') { $piwikUrl = 'http://' . $piwikUrl; } preg_match('~^(http|https)://(.*)$~D', $piwikUrl, $matches); @@ -889,4 +888,4 @@ class Piwik return $result; } -}
\ No newline at end of file +} |