Passed
Push — master ( 6086f2...9dee83 )
by Kiran
09:50 queued 20s
created
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.
vendor/ayecode/wp-ayecode-ui/includes/ayecode-ui-settings.php 1 patch
Braces   +16 added lines, -12 removed lines patch added patch discarded remove patch
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
 
463 463
 			if( is_admin() && !$this->is_aui_screen()){
464 464
 				// don't add wp-admin scripts if not requested to
465
-			}else{
465
+			} else{
466 466
 				$css_setting = current_action() == 'wp_enqueue_scripts' ? 'css' : 'css_backend';
467 467
 
468 468
 				$rtl = is_rtl() && ! $aui_bs5 ? '-rtl' : '';
@@ -552,7 +552,7 @@  discard block
 block discarded – undo
552 552
 					// custom changes
553 553
 					if ( $load_fse ) {
554 554
 						wp_add_inline_style( 'ayecode-ui-fse', self::custom_css($compatibility) );
555
-					}else{
555
+					} else{
556 556
 						wp_add_inline_style( 'ayecode-ui', self::custom_css($compatibility) );
557 557
 
558 558
 					}
@@ -576,7 +576,7 @@  discard block
 block discarded – undo
576 576
 			ob_start();
577 577
 			if ( $aui_bs5 ) {
578 578
 				include_once( dirname( __FILE__ ) . '/inc/bs5-js.php' );
579
-			}else{
579
+			} else{
580 580
 				include_once( dirname( __FILE__ ) . '/inc/bs4-js.php' );
581 581
             }
582 582
 
@@ -647,7 +647,7 @@  discard block
 block discarded – undo
647 647
 
648 648
 			if( is_admin() && !$this->is_aui_screen()){
649 649
 				// don't add wp-admin scripts if not requested to
650
-			}else {
650
+			} else {
651 651
 
652 652
 				$js_setting = current_action() == 'wp_enqueue_scripts' ? 'js' : 'js_backend';
653 653
 
@@ -662,7 +662,7 @@  discard block
 block discarded – undo
662 662
 				// iconpicker
663 663
 				if ( defined( 'FAS_ICONPICKER_JS_URL' ) ) {
664 664
 					wp_register_script( 'iconpicker', FAS_ICONPICKER_JS_URL, array(), $this->version );
665
-				}else{
665
+				} else{
666 666
 					wp_register_script( 'iconpicker', $this->url . 'assets/js/fa-iconpicker.min.js', array(), $this->version );
667 667
 				}
668 668
 
@@ -1094,7 +1094,7 @@  discard block
 block discarded – undo
1094 1094
 						$colors[$color['slug']] = esc_attr($color['color']);
1095 1095
 					}
1096 1096
 				}
1097
-			}else{
1097
+			} else{
1098 1098
 				$settings = get_option('aui_options');
1099 1099
 				$colors = array(
1100 1100
 					'primary'   => ! empty( $settings['color_primary'] ) ? $settings['color_primary'] : AUI_PRIMARY_COLOR,
@@ -1232,9 +1232,9 @@  discard block
 block discarded – undo
1232 1232
 
1233 1233
 			if($compatibility===true || $compatibility===1){
1234 1234
 				$compatibility = '.bsui';
1235
-			}elseif(!$compatibility){
1235
+			} elseif(!$compatibility){
1236 1236
 				$compatibility = '';
1237
-			}else{
1237
+			} else{
1238 1238
 				$compatibility = esc_attr($compatibility);
1239 1239
 			}
1240 1240
 
@@ -1517,9 +1517,9 @@  discard block
 block discarded – undo
1517 1517
 
1518 1518
 			if($compatibility===true || $compatibility===1){
1519 1519
 				$compatibility = '.bsui';
1520
-			}elseif(!$compatibility){
1520
+			} elseif(!$compatibility){
1521 1521
 				$compatibility = '';
1522
-			}else{
1522
+			} else{
1523 1523
 				$compatibility = esc_attr($compatibility);
1524 1524
 			}
1525 1525
 
@@ -2385,7 +2385,9 @@  discard block
 block discarded – undo
2385 2385
 		 * @return mixed
2386 2386
 		 */
2387 2387
 		public static function minify_js($input) {
2388
-			if(trim($input) === "") return $input;
2388
+			if(trim($input) === "") {
2389
+			    return $input;
2390
+			}
2389 2391
 			return preg_replace(
2390 2392
 				array(
2391 2393
 					// Remove comment(s)
@@ -2417,7 +2419,9 @@  discard block
 block discarded – undo
2417 2419
 		 * @return mixed
2418 2420
 		 */
2419 2421
 		public static function minify_css($input) {
2420
-			if(trim($input) === "") return $input;
2422
+			if(trim($input) === "") {
2423
+			    return $input;
2424
+			}
2421 2425
 			return preg_replace(
2422 2426
 				array(
2423 2427
 					// Remove comment(s)
Please login to merge, or discard this patch.
includes/admin/html-admin-page-addons.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -159,12 +159,10 @@
 block discarded – undo
159 159
 									if ( 'stripe-payment-gateway' == $addon->info->slug ) {
160 160
 										$addon->info->slug = 'getpaid-stripe-payments';
161 161
 										$addon->info->link = 'https://wordpress.org/plugins/getpaid-stripe-payments/';
162
-									}
163
-                                    elseif( 'wallet' == $addon->info->slug ){
162
+									} elseif( 'wallet' == $addon->info->slug ){
164 163
 										$addon->info->slug = 'getpaid-wallet';
165 164
 										$addon->info->link = 'https://wordpress.org/plugins/getpaid-wallet/';
166
-									}
167
-                                    elseif( 'item-inventory' == $addon->info->slug ){
165
+									} elseif( 'item-inventory' == $addon->info->slug ){
168 166
 										$addon->info->slug = 'getpaid-item-inventory';
169 167
 										$addon->info->link = 'https://wordpress.org/plugins/getpaid-item-inventory/';
170 168
 									}
Please login to merge, or discard this patch.