Passed
Pull Request — master (#785)
by
unknown
14:17
created
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.
vendor/ayecode/wp-super-duper/wp-super-duper.php 1 patch
Braces   +40 added lines, -42 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             if(!empty($this->options['nested-block'])){
61 61
                 if(empty($this->options['output_types'])){
62 62
                     $this->options['output_types'] = array('shortcode','block');
63
-                }elseif (($key = array_search('widget', $this->options['output_types'])) !== false) {
63
+                } elseif (($key = array_search('widget', $this->options['output_types'])) !== false) {
64 64
                     unset($this->options['output_types'][$key]);
65 65
                 }
66 66
             }
@@ -715,7 +715,7 @@  discard block
 block discarded – undo
715 715
 				<?php
716 716
 				if(! empty( $insert_shortcode_function )){
717 717
 					echo $insert_shortcode_function;
718
-				}else{
718
+				} else{
719 719
 
720 720
 				/**
721 721
 				 * Function for super duper insert shortcode.
@@ -2233,7 +2233,7 @@  discard block
 block discarded – undo
2233 2233
 				$p_pl = 'ps-';
2234 2234
 				$p_pr = 'pe-';
2235 2235
 					<?php
2236
-				}else{
2236
+				} else{
2237 2237
 						?>
2238 2238
 				$aui_bs5 = false;
2239 2239
 				$p_ml = 'ml-';
@@ -2455,7 +2455,7 @@  discard block
 block discarded – undo
2455 2455
                     var InnerBlocks = blockEditor.InnerBlocks;
2456 2456
 
2457 2457
 					var term_query_type = '';
2458
-					var post_type_rest_slugs = <?php if(! empty( $this->arguments ) && isset($this->arguments['post_type']['onchange_rest']['values'])){echo "[".json_encode($this->arguments['post_type']['onchange_rest']['values'])."]";}else{echo "[]";} ?>;
2458
+					var post_type_rest_slugs = <?php if(! empty( $this->arguments ) && isset($this->arguments['post_type']['onchange_rest']['values'])){echo "[".json_encode($this->arguments['post_type']['onchange_rest']['values'])."]";} else{echo "[]";} ?>;
2459 2459
 					const taxonomies_<?php echo str_replace("-","_", $this->id);?> = [{label: "Please wait", value: 0}];
2460 2460
 					const sort_by_<?php echo str_replace("-","_", $this->id);?> = [{label: "Please wait", value: 0}];
2461 2461
                     const MediaUpload = wp.blockEditor.MediaUpload;
@@ -2574,8 +2574,7 @@  discard block
 block discarded – undo
2574 2574
 
2575 2575
 								if ( $args['type'] == 'notice' ||  $args['type'] == 'tab' ) {
2576 2576
 									continue;
2577
-								}
2578
-								elseif ( $args['type'] == 'checkbox' ) {
2577
+								} elseif ( $args['type'] == 'checkbox' ) {
2579 2578
 									$type    = 'boolean';
2580 2579
 									$default = isset( $args['default'] ) && $args['default'] ? 'true' : 'false';
2581 2580
 								} elseif ( $args['type'] == 'number' ) {
@@ -2703,7 +2702,7 @@  discard block
 block discarded – undo
2703 2702
                             <?php
2704 2703
                             if(!empty($this->options['block-edit-raw'])) {
2705 2704
                                 echo $this->options['block-edit-raw']; // strings have to be in single quotes, may cause issues
2706
-                            }else{
2705
+                            } else{
2707 2706
                             ?>
2708 2707
 
2709 2708
 function hasSelectedInnerBlock(props) {
@@ -2838,7 +2837,7 @@  discard block
 block discarded – undo
2838 2837
 $current_screen = function_exists('get_current_screen') ? get_current_screen() : '';
2839 2838
 if(!empty($current_screen->base) && $current_screen->base==='widgets'){
2840 2839
 	echo 'const { deviceType } = "";';
2841
-}else{
2840
+} else{
2842 2841
 ?>
2843 2842
 /** Get device type const. */
2844 2843
 const { deviceType } = wp.data.useSelect != 'undefined' ?  wp.data.useSelect(select => {
@@ -2872,7 +2871,7 @@  discard block
 block discarded – undo
2872 2871
 										'block_parent_name': parentBlocks.length ? parentBlocks[parentBlocks.length - 1].name : '',
2873 2872
 										'post_id': <?php global $post; if ( isset( $post->ID ) ) {
2874 2873
 										echo $post->ID;
2875
-									}else{echo '0';}?>,
2874
+									} else{echo '0';}?>,
2876 2875
 										'_ajax_nonce': '<?php echo wp_create_nonce( 'super_duper_output_shortcode' );?>'
2877 2876
 									};
2878 2877
 
@@ -2892,7 +2891,7 @@  discard block
 block discarded – undo
2892 2891
 										is_fetching = false;
2893 2892
 										prev_attributes[props.clientId] = props.attributes;
2894 2893
                                              <?php
2895
-                                        }else{
2894
+                                        } else{
2896 2895
                                         ?>
2897 2896
                                         props.setAttributes({content: env});
2898 2897
 										is_fetching = false;
@@ -3050,7 +3049,7 @@  discard block
 block discarded – undo
3050 3049
 //
3051 3050
 
3052 3051
 									}
3053
-									}else {
3052
+									} else {
3054 3053
 									?>
3055 3054
 									el(wp.components.PanelBody, {
3056 3055
 											title: '<?php esc_attr_e( "Settings", 'ayecode-connect' ); ?>',
@@ -3076,9 +3075,9 @@  discard block
 block discarded – undo
3076 3075
 								// If the user sets block-output array then build it
3077 3076
 								if ( ! empty( $this->options['block-output'] ) ) {
3078 3077
 								$this->block_element( $this->options['block-output'] );
3079
-							}elseif(!empty($this->options['block-edit-return'])){
3078
+							} elseif(!empty($this->options['block-edit-return'])){
3080 3079
                                    echo $this->options['block-edit-return'];
3081
-							}else{
3080
+							} else{
3082 3081
 								// if no block-output is set then we try and get the shortcode html output via ajax.
3083 3082
 								$block_edit_wrap_tag = !empty($this->options['block_edit_wrap_tag']) ? esc_attr($this->options['block_edit_wrap_tag']) : 'div';
3084 3083
 								?>
@@ -3183,9 +3182,9 @@  discard block
 block discarded – undo
3183 3182
                                );
3184 3183
                                 <?php
3185 3184
 
3186
-							}elseif(!empty($this->options['block-save-return'])){
3185
+							} elseif(!empty($this->options['block-save-return'])){
3187 3186
                                    echo 'return ' . $this->options['block-save-return'];
3188
-							}elseif(!empty($this->options['nested-block'])){
3187
+							} elseif(!empty($this->options['nested-block'])){
3189 3188
                                 ?>
3190 3189
                               return el(
3191 3190
                                    '',
@@ -3195,13 +3194,13 @@  discard block
 block discarded – undo
3195 3194
                                    el('', {dangerouslySetInnerHTML: {__html: "[/<?php echo $this->options['base_id'];?>]"}})
3196 3195
                                );
3197 3196
                                 <?php
3198
-							}elseif(!empty( $this->options['block-save-return'] ) ){
3197
+							} elseif(!empty( $this->options['block-save-return'] ) ){
3199 3198
                                 echo "return ". $this->options['block-edit-return'].";";
3200
-							}elseif(isset( $this->options['block-wrap'] ) && $this->options['block-wrap'] == ''){
3199
+							} elseif(isset( $this->options['block-wrap'] ) && $this->options['block-wrap'] == ''){
3201 3200
 							?>
3202 3201
 							return content;
3203 3202
 							<?php
3204
-							}else{
3203
+							} else{
3205 3204
 							?>
3206 3205
 							var block_wrap = 'div';
3207 3206
 							if (attr.hasOwnProperty("block_wrap")) {
@@ -3252,9 +3251,9 @@  discard block
 block discarded – undo
3252 3251
                 $device_type_icon = '';
3253 3252
                 if($device_type=='Desktop'){
3254 3253
                     $device_type_icon = '<span class="dashicons dashicons-desktop" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>';
3255
-                }elseif($device_type=='Tablet'){
3254
+                } elseif($device_type=='Tablet'){
3256 3255
                     $device_type_icon = '<span class="dashicons dashicons-tablet" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>';
3257
-                }elseif($device_type=='Mobile'){
3256
+                } elseif($device_type=='Mobile'){
3258 3257
                     $device_type_icon = '<span class="dashicons dashicons-smartphone" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>';
3259 3258
                 }
3260 3259
 				echo $element_require;
@@ -3299,7 +3298,7 @@  discard block
 block discarded – undo
3299 3298
 
3300 3299
 					<?php
3301 3300
 					if(false){?></script><?php }
3302
-				}elseif(!empty($args['row']['close'])){
3301
+				} elseif(!empty($args['row']['close'])){
3303 3302
 					if(false){?><script><?php }?>
3304 3303
 						el(
3305 3304
 							'div',
@@ -3308,7 +3307,7 @@  discard block
 block discarded – undo
3308 3307
 							},
3309 3308
 					<?php
3310 3309
 					if(false){?></script><?php }
3311
-				}else{
3310
+				} else{
3312 3311
 					if(false){?><script><?php }?>
3313 3312
 						el(
3314 3313
 							'div',
@@ -3413,9 +3412,9 @@  discard block
 block discarded – undo
3413 3412
             $device_type_icon = '';
3414 3413
             if($device_type=='Desktop'){
3415 3414
                 $device_type_icon = '<span class="dashicons dashicons-desktop" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>';
3416
-            }elseif($device_type=='Tablet'){
3415
+            } elseif($device_type=='Tablet'){
3417 3416
                 $device_type_icon = '<span class="dashicons dashicons-tablet" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>';
3418
-            }elseif($device_type=='Mobile'){
3417
+            } elseif($device_type=='Mobile'){
3419 3418
                 $device_type_icon = '<span class="dashicons dashicons-smartphone" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>';
3420 3419
             }
3421 3420
 
@@ -3472,7 +3471,7 @@  discard block
 block discarded – undo
3472 3471
 				$args['type'] == 'text';
3473 3472
 				// Save numbers as numbers and not strings
3474 3473
 				$value     = "props.attributes.$key ? props.attributes.$key : ''";
3475
-			}else if ( $args['type'] == 'notice' ) {
3474
+			} else if ( $args['type'] == 'notice' ) {
3476 3475
 
3477 3476
 				$notice_message = !empty($args['desc']) ? addslashes($args['desc']) : '';
3478 3477
 				$notice_status = !empty($args['status']) ? esc_attr($args['status']) : 'info';
@@ -3547,7 +3546,7 @@  discard block
 block discarded – undo
3547 3546
                             $key: value
3548 3547
                         });
3549 3548
                     },";
3550
-			}elseif ( $args['type'] == 'gradient' ) {
3549
+			} elseif ( $args['type'] == 'gradient' ) {
3551 3550
 				$type = 'GradientPicker';
3552 3551
 				$extra .= "gradients: [{
3553 3552
 			name: 'Vivid cyan blue to vivid purple',
@@ -3586,7 +3585,7 @@  discard block
 block discarded – undo
3586 3585
 			slug: 'cool-to-warm-spectrum',
3587 3586
 		}],";
3588 3587
 
3589
-			}elseif ( $args['type'] == 'image' ) {
3588
+			} elseif ( $args['type'] == 'image' ) {
3590 3589
 //                print_r($args);
3591 3590
 
3592 3591
                 $img_preview = isset($args['focalpoint']) && !$args['focalpoint'] ? " props.attributes.$key && el('img', { src: props.attributes.$key,style: {maxWidth:'100%',background: '#ccc'}})," : " ( props.attributes.$key ||  props.attributes.{$key}_use_featured ) && el(wp.components.FocalPointPicker,{
@@ -3723,8 +3722,7 @@  discard block
 block discarded – undo
3723 3722
                 $onchange = "";
3724 3723
 
3725 3724
                 //$inside_elements = ",el('div',{},'file upload')";
3726
-			}
3727
-			elseif ( $args['type'] == 'checkbox' ) {
3725
+			} elseif ( $args['type'] == 'checkbox' ) {
3728 3726
 				$type = 'CheckboxControl';
3729 3727
 				$extra .= "checked: props.attributes.$key,";
3730 3728
 				$onchange = "props.setAttributes({ $key: ! props.attributes.$key } )";
@@ -3736,9 +3734,9 @@  discard block
 block discarded – undo
3736 3734
 
3737 3735
 				if($args['name'] == 'category' && !empty($args['post_type_linked'])){
3738 3736
 					$options .= "options: taxonomies_".str_replace("-","_", $this->id).",";
3739
-				}elseif($args['name'] == 'sort_by' && !empty($args['post_type_linked'])){
3737
+				} elseif($args['name'] == 'sort_by' && !empty($args['post_type_linked'])){
3740 3738
 					$options .= "options: sort_by_".str_replace("-","_", $this->id).",";
3741
-				}else {
3739
+				} else {
3742 3740
 
3743 3741
 					if ( ! empty( $args['options'] ) ) {
3744 3742
 						$options .= "options: [";
@@ -3902,7 +3900,7 @@  discard block
 block discarded – undo
3902 3900
 				foreach ( $custom_attributes as $key => $val ) {
3903 3901
 					if(is_array($val)){
3904 3902
 						$attributes .= $key.': {'.$this->array_to_attributes( $val, $html ).'},';
3905
-					}else{
3903
+					} else{
3906 3904
 						$attributes .= $html ?  " $key='$val' " : "'$key': '$val',";
3907 3905
 					}
3908 3906
 				}
@@ -3942,7 +3940,7 @@  discard block
 block discarded – undo
3942 3940
 
3943 3941
                             if($new_args['element']=='InnerBlocks'){
3944 3942
                                 echo "\n el( InnerBlocks, {";
3945
-                            }elseif($new_args['element']=='innerBlocksProps'){
3943
+                            } elseif($new_args['element']=='innerBlocksProps'){
3946 3944
                                 $element = isset($new_args['inner_element']) ? esc_attr($new_args['inner_element']) : 'div';
3947 3945
                               //  echo "\n el( 'section', wp.blockEditor.useInnerBlocksProps( blockProps, {";
3948 3946
 //                                echo $save ? "\n el( '$element', wp.blockEditor.useInnerBlocksProps.save( " : "\n el( '$element', wp.blockEditor.useInnerBlocksProps( ";
@@ -3955,11 +3953,11 @@  discard block
 block discarded – undo
3955 3953
                             //    echo '###';
3956 3954
 
3957 3955
                               //  echo '###';
3958
-                            }elseif($new_args['element']=='BlocksProps'){
3956
+                            } elseif($new_args['element']=='BlocksProps'){
3959 3957
 
3960 3958
 								if ( isset($new_args['if_inner_element']) ) {
3961 3959
 									$element = $new_args['if_inner_element'];
3962
-								}else {
3960
+								} else {
3963 3961
 									$element = isset($new_args['inner_element']) ? "'".esc_attr($new_args['inner_element'])."'" : "'div'";
3964 3962
 								}
3965 3963
 
@@ -3970,7 +3968,7 @@  discard block
 block discarded – undo
3970 3968
 
3971 3969
                                // echo "} ),";
3972 3970
 
3973
-                            }else{
3971
+                            } else{
3974 3972
                                 echo "\n el( '" . $new_args['element'] . "', {";
3975 3973
                             }
3976 3974
 
@@ -3995,7 +3993,7 @@  discard block
 block discarded – undo
3995 3993
 
3996 3994
 									if ( $new_key === 'content' ) {
3997 3995
 										echo "'" . $this->block_props_replace( wp_slash( $new_value ) ) . "'";
3998
-									}else if ( $new_key === 'if_content' ) {
3996
+									} else if ( $new_key === 'if_content' ) {
3999 3997
 										echo  $this->block_props_replace(  $new_value  );
4000 3998
 									}
4001 3999
 
@@ -4025,7 +4023,7 @@  discard block
 block discarded – undo
4025 4023
 
4026 4024
                             if($new_args['element']=='innerBlocksProps' || $new_args['element']=='xBlocksProps'){
4027 4025
                                 echo "))";// end content
4028
-                            }else{
4026
+                            } else{
4029 4027
                                 echo ")";// end content
4030 4028
                             }
4031 4029
 
@@ -4351,7 +4349,7 @@  discard block
 block discarded – undo
4351 4349
 
4352 4350
 				if(empty($instance['widget_title_tag'])){
4353 4351
 					$output = $args['before_title'] . $title . $args['after_title'];
4354
-				}else{
4352
+				} else{
4355 4353
 					$title_tag = esc_attr( $instance['widget_title_tag'] );
4356 4354
 
4357 4355
 					// classes
@@ -4641,11 +4639,11 @@  discard block
 block discarded – undo
4641 4639
 		public function get_widget_icon($icon = 'box-top', $title = ''){
4642 4640
 			if($icon=='box-top'){
4643 4641
 				return '<svg title="'.esc_attr($title).'" width="20px" height="20px" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414" role="img" aria-hidden="true" focusable="false"><rect x="2.714" y="5.492" width="1.048" height="9.017" fill="#555D66"></rect><rect x="16.265" y="5.498" width="1.023" height="9.003" fill="#555D66"></rect><rect x="5.518" y="2.186" width="8.964" height="2.482" fill="#272B2F"></rect><rect x="5.487" y="16.261" width="9.026" height="1.037" fill="#555D66"></rect></svg>';
4644
-			}elseif($icon=='box-right'){
4642
+			} elseif($icon=='box-right'){
4645 4643
 				return '<svg title="'.esc_attr($title).'" width="20px" height="20px" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414" role="img" aria-hidden="true" focusable="false"><rect x="2.714" y="5.492" width="1.046" height="9.017" fill="#555D66"></rect><rect x="15.244" y="5.498" width="2.518" height="9.003" fill="#272B2F"></rect><rect x="5.518" y="2.719" width="8.964" height="0.954" fill="#555D66"></rect><rect x="5.487" y="16.308" width="9.026" height="0.99" fill="#555D66"></rect></svg>';
4646
-			}elseif($icon=='box-bottom'){
4644
+			} elseif($icon=='box-bottom'){
4647 4645
 				return '<svg title="'.esc_attr($title).'" width="20px" height="20px" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414" role="img" aria-hidden="true" focusable="false"><rect x="2.714" y="5.492" width="1" height="9.017" fill="#555D66"></rect><rect x="16.261" y="5.498" width="1.027" height="9.003" fill="#555D66"></rect><rect x="5.518" y="2.719" width="8.964" height="0.968" fill="#555D66"></rect><rect x="5.487" y="15.28" width="9.026" height="2.499" fill="#272B2F"></rect></svg>';
4648
-			}elseif($icon=='box-left'){
4646
+			} elseif($icon=='box-left'){
4649 4647
 				return '<svg title="'.esc_attr($title).'" width="20px" height="20px" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414" role="img" aria-hidden="true" focusable="false"><rect x="2.202" y="5.492" width="2.503" height="9.017" fill="#272B2F"></rect><rect x="16.276" y="5.498" width="1.012" height="9.003" fill="#555D66"></rect><rect x="5.518" y="2.719" width="8.964" height="0.966" fill="#555D66"></rect><rect x="5.487" y="16.303" width="9.026" height="0.995" fill="#555D66"></rect></svg>';
4650 4648
 			}
4651 4649
 		}
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.