From 4b1af4d274448d05f3347964d02cd1201562893d Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 26 Jul 2017 08:57:23 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/danog/MadelineProto/TL/PrettyException.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/TL/PrettyException.php b/src/danog/MadelineProto/TL/PrettyException.php index f2b5c109..2e5a7f9e 100644 --- a/src/danog/MadelineProto/TL/PrettyException.php +++ b/src/danog/MadelineProto/TL/PrettyException.php @@ -34,7 +34,9 @@ trait PrettyException if ($tl) { $this->tl_trace .= PHP_EOL; } - if (isset($frame['function']) && $frame['function'] === 'handle_rpc_error' && $k === count($this->getTrace())-1) continue; + if (isset($frame['function']) && $frame['function'] === 'handle_rpc_error' && $k === count($this->getTrace()) - 1) { + continue; + } $this->tl_trace .= isset($frame['file']) ? str_pad(basename($frame['file']).'('.$frame['line'].'):', 16)."\t" : ''; $this->tl_trace .= isset($frame['function']) ? $frame['function'].'(' : ''; $this->tl_trace .= isset($frame['args']) ? substr(json_encode($frame['args']), 1, -1) : '';