Passed
Push — master ( ccb079...7906b4 )
by Paul
04:39
created
plugin/Controllers/TrustalyzeController.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,8 @@  discard block
 block discarded – undo
51 51
         }
52 52
         if ('F' === $trustalyzeProductType && 'yes' === glsr_get_option('general.trustalyze')) {
53 53
             $button = $this->buildUpgradeButton();
54
-        } else {
54
+        }
55
+        else {
55 56
             $button = $this->buildCreateButton();
56 57
         }
57 58
         $context['field'].= $button;
@@ -229,7 +230,8 @@  discard block
 block discarded – undo
229 230
         );
230 231
         if ($trustalyze->success) {
231 232
             update_option($this->trustalyzeKey, Arr::get($trustalyze->response, 'producttype'));
232
-        } else {
233
+        }
234
+        else {
233 235
             delete_option($this->trustalyzeKey);
234 236
             $settings = Arr::set($settings, $this->enabledKey, 'no');
235 237
             glsr(Notice::class)->addError(sprintf(
Please login to merge, or discard this patch.
plugin/Modules/Trustalyze.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,8 @@
 block discarded – undo
101 101
     {
102 102
         if (is_wp_error($response)) {
103 103
             $this->message = $response->get_error_message();
104
-        } else {
104
+        }
105
+        else {
105 106
             $responseBody = wp_remote_retrieve_body($response);
106 107
             $responseCode = wp_remote_retrieve_response_code($response);
107 108
             $responseData = (array) json_decode($responseBody, true);
Please login to merge, or discard this patch.
plugin/Modules/Upgrader.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,5 +12,6 @@
 block discarded – undo
12 12
 class Upgrader
13 13
 {
14 14
     public function run()
15
-    {}
15
+    {
16
+}
16 17
 }
Please login to merge, or discard this patch.
plugin/Modules/Html/Builder.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -326,7 +326,8 @@
 block discarded – undo
326 326
         }
327 327
         if (is_array($parameter1)) {
328 328
             $this->args += $parameter1;
329
-        } elseif (is_array($parameter2)) {
329
+        }
330
+        elseif (is_array($parameter2)) {
330 331
             $this->args += $parameter2;
331 332
         }
332 333
         if (!isset($this->args['is_public'])) {
Please login to merge, or discard this patch.
plugin/Addons/Addon.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,8 @@
 block discarded – undo
54 54
     }
55 55
 
56 56
     public function make($class)
57
-    {}
57
+    {
58
+}
58 59
 
59 60
     /**
60 61
      * @return void
Please login to merge, or discard this patch.
plugin/Addons/Updater.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,7 +139,8 @@  discard block
 block discarded – undo
139 139
         foreach (glsr()->addons as $addon) {
140 140
             try {
141 141
                 glsr($addon)->updater->getPluginUpdate(true);
142
-            } catch (\Exception $e) {
142
+            }
143
+            catch (\Exception $e) {
143 144
                 glsr_log()->error($e->getMessage());
144 145
             }
145 146
         }
@@ -198,7 +199,8 @@  discard block
 block discarded – undo
198 199
             unset($transient->no_update[$this->plugin]);
199 200
             $updateInfo->update = true;
200 201
             $transient->response[$this->plugin] = $updateInfo;
201
-        } else {
202
+        }
203
+        else {
202 204
             unset($transient->response[$this->plugin]);
203 205
             $transient->no_update[$this->plugin] = $updateInfo;
204 206
         }
Please login to merge, or discard this patch.
plugin/Blocks/BlockGenerator.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,8 @@
 block discarded – undo
25 25
         $attributes['hide'] = implode(',', array_keys($hide));
26 26
         if ('post_id' === Arr::get($attributes, 'assigned_to')) {
27 27
             $attributes['assigned_to'] = $attributes['post_id'];
28
-        } elseif ('parent_id' === Arr::get($attributes, 'assigned_to')) {
28
+        }
29
+        elseif ('parent_id' === Arr::get($attributes, 'assigned_to')) {
29 30
             $attributes['assigned_to'] = wp_get_post_parent_id($attributes['post_id']);
30 31
         }
31 32
         return $attributes;
Please login to merge, or discard this patch.
plugin/Helpers/Arr.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,8 @@
 block discarded – undo
64 64
                 if ($flattenValue) {
65 65
                     $value = '['.implode(', ', $value).']';
66 66
                 }
67
-            } elseif (is_array($value)) {
67
+            }
68
+            elseif (is_array($value)) {
68 69
                 $result = array_merge($result, static::flatten($value, $flattenValue, $newKey));
69 70
                 continue;
70 71
             }
Please login to merge, or discard this patch.