Passed
Push — main ( 5fd686...888032 )
by Sammy
02:13
created
LogLaddy.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             }
74 74
         } elseif (in_array($level, [LogLevel::ERROR, LogLevel::CRITICAL, LogLevel::ALERT, LogLevel::EMERGENCY])) {
75 75
             if (isset($context['exception']) && $context['exception'] instanceof \Throwable) {
76
-                Debugger::visualDump($context['exception'], 'Uncaught ' . get_class($context['exception']), true);
76
+                Debugger::visualDump($context['exception'], 'Uncaught '.get_class($context['exception']), true);
77 77
             } else {
78 78
                 Debugger::visualDump($message, $level, true);
79 79
             }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             http_response_code(500);
82 82
             die;
83 83
         } else {
84
-            throw new \Psr\Log\InvalidArgumentException('UNDEFINED_LOGLEVEL_' . $level);
84
+            throw new \Psr\Log\InvalidArgumentException('UNDEFINED_LOGLEVEL_'.$level);
85 85
         }
86 86
 
87 87
         // switch ($level) {
@@ -138,11 +138,11 @@  discard block
 block discarded – undo
138 138
             self::$level_mapping =
139 139
               array_fill_keys([E_ERROR, E_PARSE, E_CORE_ERROR, E_COMPILE_ERROR, E_USER_ERROR, E_RECOVERABLE_ERROR], LogLevel::CRITICAL)
140 140
               + array_fill_keys([E_WARNING, E_CORE_WARNING, E_COMPILE_WARNING, E_USER_WARNING], LogLevel::ERROR)
141
-              + array_fill_keys([E_NOTICE, E_USER_NOTICE, E_STRICT,E_DEPRECATED,E_USER_DEPRECATED,E_ALL], LogLevel::DEBUG);
141
+              + array_fill_keys([E_NOTICE, E_USER_NOTICE, E_STRICT, E_DEPRECATED, E_USER_DEPRECATED, E_ALL], LogLevel::DEBUG);
142 142
         }
143 143
 
144 144
         if (!isset(self::$level_mapping[$level])) {
145
-            throw new \Exception(__FUNCTION__ . "($level): $level is unknown");
145
+            throw new \Exception(__FUNCTION__."($level): $level is unknown");
146 146
         }
147 147
 
148 148
         return self::$level_mapping[$level];
Please login to merge, or discard this patch.