@@ -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()), |
@@ -90,8 +90,8 @@ discard block |
||
90 | 90 | $formated_traces = []; |
91 | 91 | |
92 | 92 | foreach ($traces as $depth => $trace) { |
93 | - if(!empty($trace_string = self::traceToString($trace))){ |
|
94 | - $formated_traces []= $trace_string; |
|
93 | + if (!empty($trace_string = self::traceToString($trace))) { |
|
94 | + $formated_traces [] = $trace_string; |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | if ($full_backtrace === false) { |
@@ -145,13 +145,13 @@ discard block |
||
145 | 145 | if (is_null($arg)) { |
146 | 146 | $ret = 'NULL'; |
147 | 147 | } elseif (is_bool($arg)) { |
148 | - $ret = 'bool:' . ((int)$arg); |
|
148 | + $ret = 'bool:'.((int) $arg); |
|
149 | 149 | } elseif (is_scalar($arg)) { |
150 | 150 | $ret = $arg; |
151 | 151 | } elseif (is_object($arg)) { |
152 | 152 | $ret = get_class($arg); |
153 | 153 | } elseif (is_array($arg)) { |
154 | - $ret = 'Array #' . count($arg); |
|
154 | + $ret = 'Array #'.count($arg); |
|
155 | 155 | } |
156 | 156 | return $ret; |
157 | 157 | } |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | |
164 | 164 | private static function isShortcutCall($function_name): bool |
165 | 165 | { |
166 | - return in_array($function_name, ['vd', 'dd','vdt', 'ddt']); |
|
166 | + return in_array($function_name, ['vd', 'dd', 'vdt', 'ddt']); |
|
167 | 167 | } |
168 | 168 | |
169 | 169 | private static function toHTML($message) |