@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | |
7 | 7 | define(__NAMESPACE__ . '\NS', __NAMESPACE__ . '\\'); |
8 | 8 | |
9 | -add_action('Flynt/afterRegisterComponents', function () { |
|
9 | +add_action('Flynt/afterRegisterComponents', function() { |
|
10 | 10 | if ((WP_ENV === 'development' || current_user_can('editor') || current_user_can('administrator')) && isset($_GET['log'])) { |
11 | 11 | if (isset($_GET['component']) && !empty($_GET['component'])) { |
12 | 12 | define(__NAMESPACE__ . '\COMPONENT_WHITELIST', explode(',', $_GET['component'])); |
@@ -32,21 +32,21 @@ discard block |
||
32 | 32 | { |
33 | 33 | $type = gettype($data); |
34 | 34 | $output = json_encode($data); |
35 | - $result = "<script>console.log({$output});</script>\n"; |
|
35 | + $result = "<script>console.log({$output});</script>\n"; |
|
36 | 36 | echoDebug($result, $postpone); |
37 | 37 | } |
38 | 38 | |
39 | 39 | function consoleTable($data, $postpone = true) |
40 | 40 | { |
41 | 41 | $output = json_encode($data); |
42 | - $result = "<script>console.table({$output});</script>\n"; |
|
42 | + $result = "<script>console.table({$output});</script>\n"; |
|
43 | 43 | echoDebug($result, $postpone); |
44 | 44 | } |
45 | 45 | |
46 | 46 | function echoDebug($data, $postpone) |
47 | 47 | { |
48 | 48 | if ($postpone) { |
49 | - add_action('wp_footer', function () use ($data) { |
|
49 | + add_action('wp_footer', function() use ($data) { |
|
50 | 50 | echo $data; |
51 | 51 | }, 30); |
52 | 52 | } else { |
@@ -6,7 +6,7 @@ |
||
6 | 6 | use Flynt\Utils\Options; |
7 | 7 | use Timber\Timber; |
8 | 8 | |
9 | -add_filter('Flynt/addComponentData?name=ListSearchResults', function ($data) { |
|
9 | +add_filter('Flynt/addComponentData?name=ListSearchResults', function($data) { |
|
10 | 10 | $data['prevIcon'] = Asset::getContents('Components/ListSearchResults/Assets/navigation-prev.svg'); |
11 | 11 | $data['nextIcon'] = Asset::getContents('Components/ListSearchResults/Assets/navigation-next.svg'); |
12 | 12 | $data['searchIcon'] = Asset::getContents('Components/ListSearchResults/Assets/search.svg'); |