From 947e918f05d70d5dce4efa4ef403e593581c3fa9 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 28 Feb 2021 12:26:24 +0100 Subject: 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 --- lib/Minz/Log.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'lib/Minz/Log.php') 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)); -- cgit v1.2.3