Passed
Pull Request — master (#298)
by
unknown
03:16
created
inc/removeEditor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 
7 7
 namespace Flynt\RemoveEditor;
8 8
 
9
-add_action('init', function () {
9
+add_action('init', function() {
10 10
     remove_post_type_support('page', 'editor');
11 11
     remove_post_type_support('post', 'editor');
12 12
 });
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 /**
15 15
  * Removes Gutenberg default styles on front-end
16 16
  */
17
-add_action('wp_print_styles', function () {
17
+add_action('wp_print_styles', function() {
18 18
     wp_dequeue_style('wp-block-library');
19 19
     wp_dequeue_style('wp-block-library-theme');
20 20
 });
Please login to merge, or discard this patch.
inc/timberDynamicResize.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 use Flynt\Utils\TimberDynamicResize;
7 7
 use acf_field_message;
8 8
 
9
-add_action('acf/init', function () {
9
+add_action('acf/init', function() {
10 10
     global $timberDynamicResize;
11 11
     $timberDynamicResize = new TimberDynamicResize();
12 12
 });
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
 add_filter(
49 49
     'acf/load_field/key=field_global_TimberDynamicResize_relativeUploadPath',
50
-    function ($field) {
50
+    function($field) {
51 51
         $field['placeholder'] = TimberDynamicResize::getDefaultRelativeUploadDir();
52 52
         return $field;
53 53
     }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
 add_filter(
57 57
     'acf/load_field/key=field_global_TimberDynamicResize_webpSupport',
58
-    function ($field) {
58
+    function($field) {
59 59
         if (!function_exists('imagewebp')) {
60 60
             $messageField = new acf_field_message();
61 61
             $field = array_merge($messageField->defaults, $field);
@@ -68,14 +68,14 @@  discard block
 block discarded – undo
68 68
 
69 69
 add_filter(
70 70
     'acf/load_value/key=field_global_TimberDynamicResize_webpSupport',
71
-    function ($value) {
71
+    function($value) {
72 72
         return function_exists('imagewebp') ? $value : '0';
73 73
     }
74 74
 );
75 75
 
76 76
 add_action(
77 77
     'update_option_options_global_TimberDynamicResize_dynamicImageGeneration',
78
-    function ($oldValue, $value) {
78
+    function($oldValue, $value) {
79 79
         global $timberDynamicResize;
80 80
         $timberDynamicResize->toggleDynamic($value === '1');
81 81
     },
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
 add_action(
87 87
     'update_option_options_global_TimberDynamicResize_webpSupport',
88
-    function ($oldValue, $value) {
88
+    function($oldValue, $value) {
89 89
         global $timberDynamicResize;
90 90
         $timberDynamicResize->toggleWebp($value === '1');
91 91
     },
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
 add_action(
97 97
     'update_option_options_global_TimberDynamicResize_relativeUploadPath',
98
-    function ($oldValue, $value) {
98
+    function($oldValue, $value) {
99 99
         global $timberDynamicResize;
100 100
         $timberDynamicResize->changeRelativeUploadPath($value);
101 101
     },
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 );
105 105
 
106 106
 # WPML REWRITE FIX
107
-add_filter('mod_rewrite_rules', function ($rules) {
107
+add_filter('mod_rewrite_rules', function($rules) {
108 108
     $homeRoot = parse_url(home_url());
109 109
     if (isset($homeRoot['path'])) {
110 110
         $homeRoot = trailingslashit($homeRoot['path']);
Please login to merge, or discard this patch.
inc/componentLogServer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 define(__NAMESPACE__ . '\NS', __NAMESPACE__ . '\\');
13 13
 
14
-add_action('Flynt/afterRegisterComponents', function () {
14
+add_action('Flynt/afterRegisterComponents', function() {
15 15
     if ((wp_get_environment_type() == 'development' || current_user_can('editor') || current_user_can('administrator')) && isset($_GET['log'])) {
16 16
         if (isset($_GET['component']) && !empty($_GET['component'])) {
17 17
             define(__NAMESPACE__ . '\COMPONENT_WHITELIST', explode(',', $_GET['component']));
@@ -38,21 +38,21 @@  discard block
 block discarded – undo
38 38
 {
39 39
     $type = gettype($data);
40 40
     $output = json_encode($data);
41
-    $result =  "<script>console.log({$output});</script>\n";
41
+    $result = "<script>console.log({$output});</script>\n";
42 42
     echoDebug($result, $postpone);
43 43
 }
44 44
 
45 45
 function consoleTable($data, $postpone = true)
46 46
 {
47 47
     $output = json_encode($data);
48
-    $result =  "<script>console.table({$output});</script>\n";
48
+    $result = "<script>console.table({$output});</script>\n";
49 49
     echoDebug($result, $postpone);
50 50
 }
51 51
 
52 52
 function echoDebug($data, $postpone)
53 53
 {
54 54
     if ($postpone) {
55
-        add_action('wp_footer', function () use ($data) {
55
+        add_action('wp_footer', function() use ($data) {
56 56
             echo $data;
57 57
         }, 30);
58 58
     } else {
Please login to merge, or discard this patch.