Completed
Push — doga/component-log-server ( 2bfcbb...fa43ef )
by Doğa
07:21
created
Features/ComponentLogServer/functions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 
7 7
 define(__NAMESPACE__ . '\NS', __NAMESPACE__ . '\\');
8 8
 
9
-add_action('Flynt/afterRegisterFeatures', function () {
9
+add_action('Flynt/afterRegisterFeatures', function() {
10 10
     $componentManager = Flynt\ComponentManager::getInstance();
11 11
     $componentWhitelist = [];
12 12
     if (isset($_GET['component']) && !empty($_GET['component'])) {
@@ -42,14 +42,14 @@  discard block
 block discarded – undo
42 42
 function consoleDebug($data, $postpone = true)
43 43
 {
44 44
     $output = json_encode($data);
45
-    $result =  "<script>console.log({$output});</script>\n";
45
+    $result = "<script>console.log({$output});</script>\n";
46 46
     echoDebug($result, $postpone);
47 47
 }
48 48
 
49 49
 function echoDebug($data, $postpone)
50 50
 {
51 51
     if ($postpone) {
52
-        add_action('wp_footer', function () use ($data) {
52
+        add_action('wp_footer', function() use ($data) {
53 53
             echo $data;
54 54
         }, 30);
55 55
     } else {
Please login to merge, or discard this patch.