Passed
Push — main ( a0c9cc...e7ed47 )
by Sammy
03:54 queued 01:39
created
Debugger.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
             $should_display = ini_get('display_errors') == '1';
20 20
 
21 21
             if ($should_display && !empty($error_message)) {
22
-                echo('<pre style="text-align:left; z-index:9999; background-color:#FFF; color:#000; padding:0.5em; font-size:0.7em; margin:0 0 1em 0; font-family:courier;">' . $error_message . '</pre>');
22
+                echo('<pre style="text-align:left; z-index:9999; background-color:#FFF; color:#000; padding:0.5em; font-size:0.7em; margin:0 0 1em 0; font-family:courier;">'.$error_message.'</pre>');
23 23
             }
24 24
         }
25 25
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
                 $var_dump = ob_get_clean();
52 52
             }
53 53
 
54
-            return PHP_EOL . "*******" . (empty($var_name) ? '' : " ($var_name) ") . "*******" . PHP_EOL . self::format_trace($backtrace, $full_backtrace) . PHP_EOL . $var_dump;
54
+            return PHP_EOL."*******".(empty($var_name) ? '' : " ($var_name) ")."*******".PHP_EOL.self::format_trace($backtrace, $full_backtrace).PHP_EOL.$var_dump;
55 55
         }
56 56
 
57 57
       // -- formatting
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
       // -- formatting : first line of \Throwable-based error
60 60
         public static function format_throwable_message($class, $code, $file, $line, $message)
61 61
         {
62
-            return sprintf(PHP_EOL . '%s (%d) in file %s:%d' . PHP_EOL . '%s', $class, $code, self::format_file($file), $line, $message);
62
+            return sprintf(PHP_EOL.'%s (%d) in file %s:%d'.PHP_EOL.'%s', $class, $code, self::format_file($file), $line, $message);
63 63
         }
64 64
 
65 65
       // -- formatting : shorten file path to [self::REDUCE_FILE_PATH_DEPTH_TO] elements
@@ -107,13 +107,13 @@  discard block
 block discarded – undo
107 107
                 if (is_null($arg)) {
108 108
                     $ret[] = 'NULL';
109 109
                 } elseif (is_bool($arg)) {
110
-                    $ret[] = 'bool:' . ((int)$arg);
110
+                    $ret[] = 'bool:'.((int) $arg);
111 111
                 } elseif (is_scalar($arg)) {
112 112
                     $ret[] = $arg;
113 113
                 } elseif (is_object($arg)) {
114 114
                     $ret[] = get_class($arg);
115 115
                 } elseif (is_array($arg)) {
116
-                    $ret[] = 'Array #' . count($arg);
116
+                    $ret[] = 'Array #'.count($arg);
117 117
                 } else {
118 118
                     $ret[] = 'unknown type';
119 119
                 }
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 
130 130
         private static function is_debugger_call($function_name)
131 131
         {
132
-            return in_array($function_name, ['vd', 'dd','vdt', 'ddt']);
132
+            return in_array($function_name, ['vd', 'dd', 'vdt', 'ddt']);
133 133
         }
134 134
     }
135 135
 }
Please login to merge, or discard this patch.