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/Log.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/Log.php')
-rw-r--r-- | core/Log.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Log.php b/core/Log.php index a860dd1989..b3421d13e1 100644 --- a/core/Log.php +++ b/core/Log.php @@ -452,7 +452,7 @@ class Log extends Singleton if ($level == self::ERROR) { $message = $this->getMessageFormattedScreen($level, $tag, $datetime, $message); $this->writeErrorToStandardErrorOutput($message); - if(!isset($this->writers['screen'])) { + if (!isset($this->writers['screen'])) { echo $message; } } @@ -599,7 +599,7 @@ class Log extends Singleton */ private function writeErrorToStandardErrorOutput($message) { - if(defined('PIWIK_TEST_MODE')) { + if (defined('PIWIK_TEST_MODE')) { // do not log on stderr during tests (prevent display of errors in CI output) return; } |