@@ -21,10 +21,10 @@ discard block |
||
21 | 21 | |
22 | 22 | public static function consoleDebug($data, $postpone, $title = 'PHP', $logType = 'log') |
23 | 23 | { |
24 | - $title .= '(' . self::getCallerFile(2) .'):'; |
|
24 | + $title .= '(' . self::getCallerFile(2) . '):'; |
|
25 | 25 | $type = gettype($data); |
26 | 26 | $output = json_encode($data); |
27 | - $result = "<script>console.{$logType}('{$title}', '({$type})', {$output});</script>\n"; |
|
27 | + $result = "<script>console.{$logType}('{$title}', '({$type})', {$output});</script>\n"; |
|
28 | 28 | self::echoDebug($result, $postpone); |
29 | 29 | } |
30 | 30 | |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | protected static function echoDebug($data, $postpone) |
45 | 45 | { |
46 | 46 | if ($postpone) { |
47 | - add_action('wp_footer', function () use ($data) { |
|
47 | + add_action('wp_footer', function() use ($data) { |
|
48 | 48 | echo $data; |
49 | 49 | }, 30); |
50 | 50 | } else { |