Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-07-26 08:57:23 +00:00 committed by StyleCI Bot
parent 62af29c1c9
commit 4b1af4d274

View File

@ -34,7 +34,9 @@ trait PrettyException
if ($tl) { if ($tl) {
$this->tl_trace .= PHP_EOL; $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['file']) ? str_pad(basename($frame['file']).'('.$frame['line'].'):', 16)."\t" : '';
$this->tl_trace .= isset($frame['function']) ? $frame['function'].'(' : ''; $this->tl_trace .= isset($frame['function']) ? $frame['function'].'(' : '';
$this->tl_trace .= isset($frame['args']) ? substr(json_encode($frame['args']), 1, -1) : ''; $this->tl_trace .= isset($frame['args']) ? substr(json_encode($frame['args']), 1, -1) : '';