Completed
Pull Request — develop (#291)
by Doğa
36:34 queued 25:07
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'])) {
@@ -43,14 +43,14 @@  discard block
 block discarded – undo
43 43
 {
44 44
     $type = gettype($data);
45 45
     $output = json_encode($data);
46
-    $result =  "<script>console.log({$output});</script>\n";
46
+    $result = "<script>console.log({$output});</script>\n";
47 47
     echoDebug($result, $postpone);
48 48
 }
49 49
 
50 50
 function echoDebug($data, $postpone)
51 51
 {
52 52
     if ($postpone) {
53
-        add_action('wp_footer', function () use ($data) {
53
+        add_action('wp_footer', function() use ($data) {
54 54
             echo $data;
55 55
         }, 30);
56 56
     } else {
Please login to merge, or discard this patch.