aboutsummaryrefslogtreecommitdiff
path: root/lib/Minz/Log.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2021-02-28 12:26:24 +0100
committerGravatar GitHub <noreply@github.com> 2021-02-28 12:26:24 +0100
commit947e918f05d70d5dce4efa4ef403e593581c3fa9 (patch)
treee66ef1ffe8a6cc0ffbea1bff1791588f72879637 /lib/Minz/Log.php
parentbf2718cada964fba66d8497592abcb73cb9520ba (diff)
Travis: Enforce phpcs line length + whitespace (#3488)
* Update Travis line length * Also check whitespace in CSS files * Fix line length ext.php * More syntax, string templates * Fix exclude-pattern * Test JS files as well
Diffstat (limited to 'lib/Minz/Log.php')
-rw-r--r--lib/Minz/Log.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Minz/Log.php b/lib/Minz/Log.php
index f8d024c1f..1686bdaf0 100644
--- a/lib/Minz/Log.php
+++ b/lib/Minz/Log.php
@@ -30,9 +30,7 @@ class Minz_Log {
}
}
- if (! ($env === 'silent'
- || ($env === 'production'
- && ($level >= LOG_NOTICE)))) {
+ if (! ($env === 'silent' || ($env === 'production' && ($level >= LOG_NOTICE)))) {
$username = Minz_Session::param('currentUser', '');
if ($username == '') {
$username = '_';
@@ -61,9 +59,7 @@ class Minz_Log {
$level_label = 'info';
}
- $log = '[' . date('r') . ']'
- . ' [' . $level_label . ']'
- . ' --- ' . $information . "\n";
+ $log = '[' . date('r') . '] [' . $level_label . '] --- ' . $information . "\n";
if (defined('COPY_LOG_TO_SYSLOG') && COPY_LOG_TO_SYSLOG) {
syslog($level, '[' . $username . '] ' . trim($log));