Completed
Push — master ( ddc780...ae0c62 )
by Doğa
02:36
created
lib/Utils/Log.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
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
         if (is_array($data) || is_object($data)) {
27 27
             $output = json_encode($data);
28
-            $result =  "<script>console.{$logType}('{$title}', '({$type})', {$output});</script>\n";
28
+            $result = "<script>console.{$logType}('{$title}', '({$type})', {$output});</script>\n";
29 29
         } else {
30 30
             $result = "<script>console.{$logType}('{$title}', '({$type})', '{$data}');</script>\n";
31 31
         }
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     protected static function echoDebug($data, $postpone)
49 49
     {
50 50
         if ($postpone) {
51
-            add_action('wp_footer', function () use ($data) {
51
+            add_action('wp_footer', function() use ($data) {
52 52
                 echo $data;
53 53
             }, 30);
54 54
         } else {
Please login to merge, or discard this patch.