Passed
Push — master ( 04b043...334ee0 )
by Paul
04:11
created
plugin/Modules/Html/Settings.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -216,7 +216,8 @@
 block discarded – undo
216 216
         if (!empty($field['label'])) {
217 217
             $field['legend'] = $field['label'];
218 218
             unset($field['label']);
219
-        } else {
219
+        }
220
+        else {
220 221
             $field['is_valid'] = false;
221 222
             glsr_log()->warning('Setting field is missing a label')->debug($field);
222 223
         }
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
@@ -328,7 +328,8 @@
 block discarded – undo
328 328
         }
329 329
         if (is_array($params[0])) {
330 330
             $this->args += $params[0];
331
-        } elseif (is_array($params[1])) {
331
+        }
332
+        elseif (is_array($params[1])) {
332 333
             $this->args += $params[1];
333 334
         }
334 335
         if (!isset($this->args['is_public'])) {
Please login to merge, or discard this patch.
plugin/Modules/Html/Partials/SiteReviewsForm.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -302,7 +302,8 @@
 block discarded – undo
302 302
         }
303 303
         if (in_array($field->field['type'], ['radio', 'checkbox'])) {
304 304
             $field->field['checked'] = $field->field['value'] == $this->values[$field->field['path']];
305
-        } else {
305
+        }
306
+        else {
306 307
             $field->field['value'] = $this->values[$field->field['path']];
307 308
         }
308 309
     }
Please login to merge, or discard this patch.
plugin/Modules/Console.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -415,7 +415,8 @@
 block discarded – undo
415 415
     {
416 416
         if ($value instanceof DateTime) {
417 417
             $value = $value->format('Y-m-d H:i:s');
418
-        } elseif ($this->isObjectOrArray($value)) {
418
+        }
419
+        elseif ($this->isObjectOrArray($value)) {
419 420
             $value = json_encode($value);
420 421
         }
421 422
         return (string) $value;
Please login to merge, or discard this patch.
plugin/Modules/Validator.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -185,7 +185,8 @@
 block discarded – undo
185 185
         $hasNumeric = $this->hasRule($attribute, $this->numericRules);
186 186
         if (is_numeric($value) && $hasNumeric) {
187 187
             return $value;
188
-        } elseif (is_array($value)) {
188
+        }
189
+        elseif (is_array($value)) {
189 190
             return count($value);
190 191
         }
191 192
         return function_exists('mb_strlen')
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
@@ -27,7 +27,8 @@
 block discarded – undo
27 27
         }
28 28
         if ('post_id' == $attributes['assigned_to']) {
29 29
             $attributes['assigned_to'] = $attributes['post_id'];
30
-        } elseif ('parent_id' == $attributes['assigned_to']) {
30
+        }
31
+        elseif ('parent_id' == $attributes['assigned_to']) {
31 32
             $attributes['assigned_to'] = wp_get_post_parent_id($attributes['post_id']);
32 33
         }
33 34
         return $attributes;
Please login to merge, or discard this patch.
plugin/Container.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,9 +68,11 @@  discard block
 block discarded – undo
68 68
     {
69 69
         if (!property_exists($this, $property) || in_array($property, static::PROTECTED_PROPERTIES)) {
70 70
             $this->storage[$property] = $value;
71
-        } elseif (!isset($this->$property)) {
71
+        }
72
+        elseif (!isset($this->$property)) {
72 73
             $this->$property = $value;
73
-        } else {
74
+        }
75
+        else {
74 76
             throw new Exception(sprintf('The "%s" property cannot be changed once set.', $property));
75 77
         }
76 78
     }
@@ -165,7 +167,8 @@  discard block
 block discarded – undo
165 167
     {
166 168
         try {
167 169
             return $this->make($parameter->getClass()->name);
168
-        } catch (Exception $error) {
170
+        }
171
+        catch (Exception $error) {
169 172
             if ($parameter->isOptional()) {
170 173
                 return $parameter->getDefaultValue();
171 174
             }
Please login to merge, or discard this patch.
plugin/Shortcodes/Shortcode.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,8 @@
 block discarded – undo
148 148
     {
149 149
         if ('parent_id' == $postId) {
150 150
             $postId = intval(wp_get_post_parent_id(intval(get_the_ID())));
151
-        } elseif ('post_id' == $postId) {
151
+        }
152
+        elseif ('post_id' == $postId) {
152 153
             $postId = intval(get_the_ID());
153 154
         }
154 155
         return $postId;
Please login to merge, or discard this patch.
plugin/Shortcodes/TinymcePopupGenerator.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -318,7 +318,8 @@
 block discarded – undo
318 318
         $alert = esc_html__('Some of the shortcode options are required.', 'site-reviews');
319 319
         if (isset($args['required']['alert'])) {
320 320
             $alert = $args['required']['alert'];
321
-        } elseif (!empty($args['label'])) {
321
+        }
322
+        elseif (!empty($args['label'])) {
322 323
             $alert = sprintf(
323 324
                 esc_html_x('The "%s" option is required.', 'the option label', 'site-reviews'),
324 325
                 str_replace(':', '', $args['label'])
Please login to merge, or discard this patch.