Passed
Push — master ( a4a7f9...458cdc )
by Ioannes
03:40 queued 01:56
created
src/Log.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      */
18 18
     public function __construct($channel = '') {
19 19
 
20
-        if(!empty($channel)) {
20
+        if (!empty($channel)) {
21 21
             $this->channel = $channel;
22 22
         } else {
23 23
             $this->channel = ($_ENV['APP_LOG_BITRIX_CHANNEL'] ?: 'bitrix');
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 
188 188
         $logger = LoggerFactory::getInstance(LoggerFactory::TELEGRAM_CHANNEL, $context);
189 189
 
190
-        if($logger) {
190
+        if ($logger) {
191 191
             try {
192 192
                 $message = FormatHelper::stringfyTelegramMessage($message, (array) $context);
193 193
                 $logger->log($level, $message, $context);
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
         $minDebugLevel = ($_ENV['APP_DEBUG_LEVEL'] ?: LogLevel::DEBUG);
213 213
         $minDebugLevel = Logger::toMonologLevel($minDebugLevel);
214 214
 
215
-        if($level >= $minDebugLevel) {
215
+        if ($level >= $minDebugLevel) {
216 216
             return true;
217 217
         }
218 218
         return false;
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
             $logPath = $_SERVER['DOCUMENT_ROOT'] . ($_ENV['APP_LOG_FOLDER'] ?: '/log/');
229 229
             $logPath = rtrim($logPath, "/");
230 230
             file_put_contents($logPath . '/monolog_error.log', (string) $exception);
231
-        } catch(\Exception $e) {
231
+        } catch (\Exception $e) {
232 232
 
233 233
         }
234 234
     }
Please login to merge, or discard this patch.