@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | { |
| 11 | 11 | $debugger = new \ReflectionClass(__CLASS__); |
| 12 | 12 | $methods = $debugger->getMethods(); |
| 13 | - self::$meta_methods = array_map(function ($m) { |
|
| 13 | + self::$meta_methods = array_map(function($m) { |
|
| 14 | 14 | return $m->name; |
| 15 | 15 | }, $methods); |
| 16 | 16 | } |
@@ -69,8 +69,8 @@ discard block |
||
| 69 | 69 | // -- formatting : first line of \Throwable-based error |
| 70 | 70 | public static function formatThrowable(\Throwable $err) |
| 71 | 71 | { |
| 72 | - return PHP_EOL . sprintf( |
|
| 73 | - '%s (%d) in file %s:%d' . PHP_EOL . '%s', |
|
| 72 | + return PHP_EOL.sprintf( |
|
| 73 | + '%s (%d) in file %s:%d'.PHP_EOL.'%s', |
|
| 74 | 74 | get_class($err), |
| 75 | 75 | $err->getCode(), |
| 76 | 76 | self::formatFilename($err->getFile()), |
@@ -92,8 +92,8 @@ discard block |
||
| 92 | 92 | foreach ($traces as $depth => $trace) { |
| 93 | 93 | $trace_string = self::traceToString($trace); |
| 94 | 94 | |
| 95 | - if(!empty($trace_string)) |
|
| 96 | - $formated_traces []= $trace_string; |
|
| 95 | + if (!empty($trace_string)) |
|
| 96 | + $formated_traces [] = $trace_string; |
|
| 97 | 97 | |
| 98 | 98 | if ($full_backtrace === false) { |
| 99 | 99 | break; |
@@ -146,13 +146,13 @@ discard block |
||
| 146 | 146 | if (is_null($arg)) { |
| 147 | 147 | $ret = 'NULL'; |
| 148 | 148 | } elseif (is_bool($arg)) { |
| 149 | - $ret = 'bool:' . ((int)$arg); |
|
| 149 | + $ret = 'bool:'.((int) $arg); |
|
| 150 | 150 | } elseif (is_scalar($arg)) { |
| 151 | 151 | $ret = $arg; |
| 152 | 152 | } elseif (is_object($arg)) { |
| 153 | 153 | $ret = get_class($arg); |
| 154 | 154 | } elseif (is_array($arg)) { |
| 155 | - $ret = 'Array #' . count($arg); |
|
| 155 | + $ret = 'Array #'.count($arg); |
|
| 156 | 156 | } |
| 157 | 157 | return $ret; |
| 158 | 158 | } |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | |
| 165 | 165 | private static function isShortcutCall($function_name): bool |
| 166 | 166 | { |
| 167 | - return in_array($function_name, ['vd', 'dd','vdt', 'ddt']); |
|
| 167 | + return in_array($function_name, ['vd', 'dd', 'vdt', 'ddt']); |
|
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | private static function toHTML($message) |
@@ -92,8 +92,9 @@ |
||
| 92 | 92 | foreach ($traces as $depth => $trace) { |
| 93 | 93 | $trace_string = self::traceToString($trace); |
| 94 | 94 | |
| 95 | - if(!empty($trace_string)) |
|
| 96 | - $formated_traces []= $trace_string; |
|
| 95 | + if(!empty($trace_string)) { |
|
| 96 | + $formated_traces []= $trace_string; |
|
| 97 | + } |
|
| 97 | 98 | |
| 98 | 99 | if ($full_backtrace === false) { |
| 99 | 100 | break; |