diff options
| author | 2024-08-01 20:31:40 +0200 | |
|---|---|---|
| committer | 2024-08-01 20:31:40 +0200 | |
| commit | d2247221bbf23a8fe19f66ea4ad7d0a59ffaa5b4 (patch) | |
| tree | f5174c1b1d174cd41dca20f350e1297894e1c6fa /lib/Minz/Log.php | |
| parent | b2c8cb74562b2f7cb290abd61ff1b6f35475f23a (diff) | |
Minor update whitespace PHPCS rules (#6666)
* Minor update whitespace PHPCS rules
To simplify our configuration, apply more rules, and be clearer about what is added or removed compared with PSR12.
Does not change our current conventions, but just a bit more consistent.
* Forgotten *.phtml
* Sort exclusion patterns + add a few for Extensions repo
* Relaxed some rules
Diffstat (limited to 'lib/Minz/Log.php')
| -rw-r--r-- | lib/Minz/Log.php | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/Minz/Log.php b/lib/Minz/Log.php index 4b884ae3b..648c2c663 100644 --- a/lib/Minz/Log.php +++ b/lib/Minz/Log.php @@ -39,21 +39,21 @@ class Minz_Log { } switch ($level) { - case LOG_ERR : - $level_label = 'error'; - break; - case LOG_WARNING : - $level_label = 'warning'; - break; - case LOG_NOTICE : - $level_label = 'notice'; - break; - case LOG_DEBUG : - $level_label = 'debug'; - break; - default : - $level = LOG_INFO; - $level_label = 'info'; + case LOG_ERR: + $level_label = 'error'; + break; + case LOG_WARNING: + $level_label = 'warning'; + break; + case LOG_NOTICE: + $level_label = 'notice'; + break; + case LOG_DEBUG: + $level_label = 'debug'; + break; + default: + $level = LOG_INFO; + $level_label = 'info'; } $log = '[' . date('r') . '] [' . $level_label . '] --- ' . $information . "\n"; |
