From 6143598de0857b32aebe7d7dda3819df7bed693f Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 21 Apr 2017 23:51:54 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/danog/MadelineProto/Exception.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/danog/MadelineProto/Exception.php b/src/danog/MadelineProto/Exception.php index 6163ff258..d41aa6b1c 100644 --- a/src/danog/MadelineProto/Exception.php +++ b/src/danog/MadelineProto/Exception.php @@ -20,8 +20,12 @@ class Exception extends \Exception if (\danog\MadelineProto\Logger::$constructed && $this->file !== __FILE__) { \danog\MadelineProto\Logger::log([$message.' in '.basename($this->file).':'.$this->line], \danog\MadelineProto\Logger::FATAL_ERROR); } - if ($line !== null) $this->line = $line; - if ($file !== null) $this->file = $file; + if ($line !== null) { + $this->line = $line; + } + if ($file !== null) { + $this->file = $file; + } \Rollbar\Rollbar::log($this); }