Passed
Push — master ( 0471d0...f0370a )
by Stiofan
06:00
created
includes/admin/meta-boxes/class-getpaid-meta-box-item-details.php 1 patch
Braces   +20 added lines, -8 removed lines patch added patch discarded remove patch
@@ -68,9 +68,12 @@  discard block
 block discarded – undo
68 68
                                         <div class="input-group-prepend">
69 69
                                             <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span>
70 70
                                         </div>
71
-                                    <?php else : ?>
71
+                                    <?php else {
72
+    : ?>
72 73
                                         <span class="input-group-text">
73
-                                            <?php echo wp_kses_post( wpinv_currency_symbol() ); ?>
74
+                                            <?php echo wp_kses_post( wpinv_currency_symbol() );
75
+}
76
+?>
74 77
                                         </span>
75 78
                                     <?php endif; ?>
76 79
                                 <?php endif; ?>
@@ -82,9 +85,12 @@  discard block
 block discarded – undo
82 85
                                         <div class="input-group-append">
83 86
                                             <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span>
84 87
                                         </div>
85
-                                    <?php else : ?>
88
+                                    <?php else {
89
+    : ?>
86 90
                                         <span class="input-group-text">
87
-                                            <?php echo wp_kses_post( wpinv_currency_symbol() ); ?>
91
+                                            <?php echo wp_kses_post( wpinv_currency_symbol() );
92
+}
93
+?>
88 94
                                         </span>
89 95
                                     <?php endif; ?>
90 96
                                 <?php endif; ?>
@@ -192,9 +198,12 @@  discard block
 block discarded – undo
192 198
                                         <div class="input-group-prepend">
193 199
                                             <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span>
194 200
                                         </div>
195
-                                    <?php else : ?>
201
+                                    <?php else {
202
+    : ?>
196 203
                                         <span class="input-group-text">
197
-                                            <?php echo wp_kses_post( wpinv_currency_symbol() ); ?>
204
+                                            <?php echo wp_kses_post( wpinv_currency_symbol() );
205
+}
206
+?>
198 207
                                         </span>
199 208
                                     <?php endif; ?>
200 209
                                 <?php endif; ?>
@@ -206,9 +215,12 @@  discard block
 block discarded – undo
206 215
                                         <div class="input-group-append">
207 216
                                             <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span>
208 217
                                         </div>
209
-                                    <?php else : ?>
218
+                                    <?php else {
219
+    : ?>
210 220
                                         <span class="input-group-text">
211
-                                            <?php echo wp_kses_post( wpinv_currency_symbol() ); ?>
221
+                                            <?php echo wp_kses_post( wpinv_currency_symbol() );
222
+}
223
+?>
212 224
                                         </span>
213 225
                                     <?php endif; ?>
214 226
                                 <?php endif; ?>
Please login to merge, or discard this patch.
includes/gateways/class-getpaid-payment-gateway.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -515,11 +515,14 @@
 block discarded – undo
515 515
 												<i class="fa fa-credit-card"></i>
516 516
 											</span>
517 517
 										</div>
518
-                                    <?php else : ?>
518
+                                    <?php else {
519
+    : ?>
519 520
                                         <span class="input-group-text">
520 521
 											<i class="fa fa-credit-card"></i>
521 522
 										</span>
522
-                                    <?php endif; ?>
523
+                                    <?php endif;
524
+}
525
+?>
523 526
 									<input type="text" name="<?php echo esc_attr( $this->id . '[cc_number]' ); ?>" id="<?php echo esc_attr( "$id_prefix-cc-number" ); ?>" class="form-control form-control-sm getpaid-format-card-number" autocomplete="cc-number">
524 527
 								</div>
525 528
 							</div>
Please login to merge, or discard this patch.
templates/payment-forms/cart-item.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -163,9 +163,12 @@  discard block
 block discarded – undo
163 163
 													<?php echo wp_kses_post( wpinv_currency_symbol( $currency ) ); ?></span>
164 164
 												</span>
165 165
 											</div>
166
-										<?php else : ?>
166
+										<?php else {
167
+    : ?>
167 168
 											<span class="input-group-text">
168
-												<?php echo wp_kses_post( wpinv_currency_symbol( $currency ) ); ?></span>
169
+												<?php echo wp_kses_post( wpinv_currency_symbol( $currency ) );
170
+}
171
+?></span>
169 172
 											</span>
170 173
 										<?php endif; ?>
171 174
 									<?php endif; ?>
@@ -185,9 +188,12 @@  discard block
 block discarded – undo
185 188
 													<?php echo wp_kses_post( wpinv_currency_symbol( $currency ) ); ?></span>
186 189
 												</span>
187 190
 											</div>
188
-										<?php else : ?>
191
+										<?php else {
192
+    : ?>
189 193
 											<span class="input-group-text">
190
-												<?php echo wp_kses_post( wpinv_currency_symbol( $currency ) ); ?></span>
194
+												<?php echo wp_kses_post( wpinv_currency_symbol( $currency ) );
195
+}
196
+?></span>
191 197
 											</span>
192 198
 										<?php endif; ?>
193 199
 									<?php endif; ?>
Please login to merge, or discard this patch.
templates/payment-forms-admin/previews/price_input.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,8 +31,11 @@  discard block
 block discarded – undo
31 31
             <div class="input-group-prepend ">
32 32
                 <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span>
33 33
             </div>
34
-        <?php else : ?>
35
-            <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span>
34
+        <?php else {
35
+    : ?>
36
+            <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() );
37
+}
38
+?></span>
36 39
         <?php endif; ?>
37 40
     <?php endif; ?>
38 41
 
@@ -43,8 +46,11 @@  discard block
 block discarded – undo
43 46
             <div class="input-group-append ">
44 47
                 <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span>
45 48
             </div>
46
-        <?php else : ?>
47
-            <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span>
49
+        <?php else {
50
+    : ?>
51
+            <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() );
52
+}
53
+?></span>
48 54
         <?php endif; ?>
49 55
     <?php endif; ?>
50 56
 </div>
Please login to merge, or discard this patch.
templates/payment-forms-admin/edit/select.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,9 +63,12 @@
 block discarded – undo
63 63
 		<div class="input-group-append ">
64 64
             <button class='button button-secondary border' type='button' @click.prevent='active_form_element.options.splice(index, 1)'><span class='dashicons dashicons-trash'></span></button>
65 65
 		</div>
66
-	<?php else : ?>
66
+	<?php else {
67
+    : ?>
67 68
 		<button class='button button-secondary border' type='button' @click.prevent='active_form_element.options.splice(index, 1)'><span class='dashicons dashicons-trash'></span></button>
68
-	<?php endif; ?>
69
+	<?php endif;
70
+}
71
+?>
69 72
 </div>
70 73
 
71 74
 <div class='form-group mb-3'>
Please login to merge, or discard this patch.
templates/payment-forms-admin/edit/radio.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,9 +63,12 @@
 block discarded – undo
63 63
 		<div class="input-group-append ">
64 64
             <button class='button button-secondary border' type='button' @click.prevent='active_form_element.options.splice(index, 1)'><span class='dashicons dashicons-trash'></span></button>
65 65
 		</div>
66
-	<?php else : ?>
66
+	<?php else {
67
+    : ?>
67 68
 		<button class='button button-secondary border' type='button' @click.prevent='active_form_element.options.splice(index, 1)'><span class='dashicons dashicons-trash'></span></button>
68
-	<?php endif; ?>
69
+	<?php endif;
70
+}
71
+?>
69 72
 </div>
70 73
 
71 74
 <div class='form-group mb-3'>
Please login to merge, or discard this patch.
ayecode/wp-ayecode-ui/includes/components/class-aui-component-alert.php 1 patch
Braces   +2 added lines, -5 removed lines patch added patch discarded remove patch
@@ -43,10 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
 			// set default icon
45 45
 			if(!$icon && $args['icon']!==false && $type){
46
-				if($type=='danger'){$icon = '<i class="fas fa-exclamation-circle"></i>';}
47
-				elseif($type=='warning'){$icon = '<i class="fas fa-exclamation-triangle"></i>';}
48
-				elseif($type=='success'){$icon = '<i class="fas fa-check-circle"></i>';}
49
-				elseif($type=='info'){$icon = '<i class="fas fa-info-circle"></i>';}
46
+				if($type=='danger'){$icon = '<i class="fas fa-exclamation-circle"></i>';} elseif($type=='warning'){$icon = '<i class="fas fa-exclamation-triangle"></i>';} elseif($type=='success'){$icon = '<i class="fas fa-check-circle"></i>';} elseif($type=='info'){$icon = '<i class="fas fa-info-circle"></i>';}
50 47
 			}
51 48
 
52 49
 			$data = '';
@@ -74,7 +71,7 @@  discard block
 block discarded – undo
74 71
 
75 72
 				if ( $aui_bs5 ) {
76 73
 					$output .= '<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>';
77
-				}else{
74
+				} else{
78 75
 					$output .= '<button type="button" class="close" data-dismiss="alert" aria-label="Close">';
79 76
 					$output .= '<span aria-hidden="true">&times;</span>';
80 77
 					$output .= '</button>';
Please login to merge, or discard this patch.
ayecode/wp-ayecode-ui/includes/components/class-aui-component-input.php 1 patch
Braces   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 			if ( $args['size'] == 'lg' || $args['size'] == 'large' ) {
100 100
 				$size = 'lg';
101 101
 				$args['class'] .= ' form-control-lg';
102
-			}elseif ( $args['size'] == 'sm' || $args['size'] == 'small' ) {
102
+			} elseif ( $args['size'] == 'sm' || $args['size'] == 'small' ) {
103 103
 				$size = 'sm';
104 104
 				$args['class'] .= ' form-control-sm';
105 105
 			}
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 						$help_text = '';
249 249
 						//$label_args['class'] .= ' d-inline ';
250 250
 						$args['wrap_class'] .= ' align-items-center ';
251
-					}else{
251
+					} else{
252 252
 
253 253
 					}
254 254
 
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
 				$switch_size_class = $args['switch'] && !is_bool( $args['switch'] ) ? ' custom-switch-'.esc_attr( $args['switch'] ) : '';
283 283
 				if ( $aui_bs5 ) {
284 284
 					$wrap_class = $args['switch'] ? 'form-check form-switch' . $switch_size_class : 'form-check';
285
-				}else{
285
+				} else{
286 286
 					$wrap_class = $args['switch'] ? 'custom-switch' . $switch_size_class :  'custom-checkbox' ;
287 287
 				}
288 288
 				if ( ! empty( $args['label_force_left'] ) ) {
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
 			if ( ! $args['no_wrap'] ) {
357 357
 				if ( ! empty( $args['form_group_class'] ) ) {
358 358
 					$fg_class = esc_attr( $args['form_group_class'] );
359
-				}else{
359
+				} else{
360 360
 					$fg_class = $aui_bs5 ? 'mb-3' : 'form-group';
361 361
 				}
362 362
 				$form_group_class = $args['label_type'] == 'floating' && $type != 'checkbox' ? 'form-label-group' : $fg_class;
@@ -759,7 +759,7 @@  discard block
 block discarded – undo
759 759
 		if ( ! $args['no_wrap'] ) {
760 760
 			if ( ! empty( $args['form_group_class'] ) ) {
761 761
 				$fg_class = esc_attr( $args['form_group_class'] );
762
-			}else{
762
+			} else{
763 763
 				$fg_class = $aui_bs5 ? 'mb-3' : 'form-group';
764 764
 			}
765 765
 			$form_group_class = $args['label_type'] == 'floating' ? 'form-label-group' : $fg_class;
@@ -1051,7 +1051,7 @@  discard block
 block discarded – undo
1051 1051
 		if ( ! $args['no_wrap'] ) {
1052 1052
 			if ( ! empty( $args['form_group_class'] ) ) {
1053 1053
 				$fg_class = esc_attr( $args['form_group_class'] );
1054
-			}else{
1054
+			} else{
1055 1055
 				$fg_class = $aui_bs5 ? 'mb-3' : 'form-group';
1056 1056
 			}
1057 1057
 			$wrap_class = $args['label_type'] == 'horizontal' ? $fg_class . ' row' : $fg_class;
Please login to merge, or discard this patch.
vendor/ayecode/wp-font-awesome-settings/wp-font-awesome-settings.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
 
129 129
 				if( !$version || version_compare($version,'5.999','>')){
130 130
 					$url .= 'assets/js/fa-iconpicker-v6.min.js';
131
-				}else{
131
+				} else{
132 132
 					$url .= 'assets/js/fa-iconpicker-v5.min.js';
133 133
 				}
134 134
 
Please login to merge, or discard this patch.