@@ -17,7 +17,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |