Passed
Push — master ( 736710...79129d )
by Kiran
11:50 queued 06:09
created
vendor/ayecode/wp-super-duper/sd-functions.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3723,7 +3723,7 @@
 block discarded – undo
3723 3723
 
3724 3724
 			$block_content = do_shortcode($block_content);
3725 3725
 
3726
-		}elseif(! empty($parsed_block['attrs']['sd_shortcode'])){
3726
+		} elseif(! empty($parsed_block['attrs']['sd_shortcode'])){
3727 3727
 			$has_warp = false;
3728 3728
 			if($block_content && strpos(trim($block_content), '<div class="wp-block-') === 0 ){
3729 3729
 				$parts = explode('></', $block_content);
Please login to merge, or discard this patch.
includes/admin/meta-boxes/class-getpaid-meta-box-item-details.php 1 patch
Braces   +25 added lines, -10 removed lines patch added patch discarded remove patch
@@ -57,9 +57,12 @@  discard block
 block discarded – undo
57 57
                                         <div class="input-group-prepend">
58 58
                                             <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span>
59 59
                                         </div>
60
-                                    <?php else : ?>
60
+                                    <?php else {
61
+    : ?>
61 62
                                         <span class="input-group-text">
62
-                                            <?php echo wp_kses_post( wpinv_currency_symbol() ); ?>
63
+                                            <?php echo wp_kses_post( wpinv_currency_symbol() );
64
+}
65
+?>
63 66
                                         </span>
64 67
                                     <?php endif; ?>
65 68
                                 <?php endif; ?>
@@ -71,9 +74,12 @@  discard block
 block discarded – undo
71 74
                                         <div class="input-group-append">
72 75
                                             <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span>
73 76
                                         </div>
74
-                                    <?php else : ?>
77
+                                    <?php else {
78
+    : ?>
75 79
                                         <span class="input-group-text">
76
-                                            <?php echo wp_kses_post( wpinv_currency_symbol() ); ?>
80
+                                            <?php echo wp_kses_post( wpinv_currency_symbol() );
81
+}
82
+?>
77 83
                                         </span>
78 84
                                     <?php endif; ?>
79 85
                                 <?php endif; ?>
@@ -83,8 +89,11 @@  discard block
 block discarded – undo
83 89
                             <div class="mb-3 input-group input-group-sm">
84 90
                                 <?php if ( empty( $aui_bs5 ) ) : ?>
85 91
                                     <div class="input-group-prepend"><span class="input-group-text pl-0 pr-2 border-0 bg-transparent"><?php esc_html_e( 'every' ); ?></span></div>
86
-                                <?php else : ?>
87
-                                    <span class="input-group-text ps-0 pe-2 border-0"><?php esc_html_e( 'every' ); ?></span>
92
+                                <?php else {
93
+    : ?>
94
+                                    <span class="input-group-text ps-0 pe-2 border-0"><?php esc_html_e( 'every' );
95
+}
96
+?></span>
88 97
                                 <?php endif; ?>
89 98
                                 <input type="number" name="wpinv_recurring_interval" id="wpinv_recurring_interval" value="<?php echo esc_attr( $item->get_recurring_interval( 'edit' ) ); ?>" placeholder="1" class="form-control rounded-1 rounded-sm">
90 99
                             </div>
@@ -185,9 +194,12 @@  discard block
 block discarded – undo
185 194
                                         <div class="input-group-prepend">
186 195
                                             <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span>
187 196
                                         </div>
188
-                                    <?php else : ?>
197
+                                    <?php else {
198
+    : ?>
189 199
                                         <span class="input-group-text">
190
-                                            <?php echo wp_kses_post( wpinv_currency_symbol() ); ?>
200
+                                            <?php echo wp_kses_post( wpinv_currency_symbol() );
201
+}
202
+?>
191 203
                                         </span>
192 204
                                     <?php endif; ?>
193 205
                                 <?php endif; ?>
@@ -199,9 +211,12 @@  discard block
 block discarded – undo
199 211
                                         <div class="input-group-append">
200 212
                                             <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span>
201 213
                                         </div>
202
-                                    <?php else : ?>
214
+                                    <?php else {
215
+    : ?>
203 216
                                         <span class="input-group-text">
204
-                                            <?php echo wp_kses_post( wpinv_currency_symbol() ); ?>
217
+                                            <?php echo wp_kses_post( wpinv_currency_symbol() );
218
+}
219
+?>
205 220
                                         </span>
206 221
                                     <?php endif; ?>
207 222
                                 <?php endif; ?>
Please login to merge, or discard this patch.
includes/wpinv-subscription.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -963,7 +963,7 @@
 block discarded – undo
963 963
 
964 964
 		if ( $discount->exists() && $discount->is_recurring() ) {
965 965
 			$invoice->add_discount( getpaid_calculate_invoice_discount( $invoice, $discount ) );
966
-		}  else {
966
+		} else {
967 967
 			// Unset discount code.
968 968
 			$invoice->set_discount_code( '' );
969 969
 
Please login to merge, or discard this patch.
vendor/ayecode/wp-ayecode-ui/includes/ayecode-ui-settings.php 1 patch
Braces   +13 added lines, -9 removed lines patch added patch discarded remove patch
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
 					// custom changes
539 539
 					if ( $load_fse ) {
540 540
 						wp_add_inline_style( 'ayecode-ui-fse', self::custom_css($compatibility, true) );
541
-					}else{
541
+					} else{
542 542
 						wp_add_inline_style( 'ayecode-ui', self::custom_css($compatibility) );
543 543
 					}
544 544
 				}
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
 			ob_start();
559 559
 			if ( $aui_bs5 ) {
560 560
 				include_once( dirname( __FILE__ ) . '/inc/bs5-js.php' );
561
-			}else{
561
+			} else{
562 562
 				include_once( dirname( __FILE__ ) . '/inc/bs4-js.php' );
563 563
             }
564 564
 
@@ -642,7 +642,7 @@  discard block
 block discarded – undo
642 642
 				// iconpicker
643 643
 				if ( defined( 'FAS_ICONPICKER_JS_URL' ) ) {
644 644
 					wp_register_script( 'iconpicker', FAS_ICONPICKER_JS_URL, array(), $this->version );
645
-				}else{
645
+				} else{
646 646
 					wp_register_script( 'iconpicker', $this->url . 'assets/js/fa-iconpicker.min.js', array(), $this->version );
647 647
 				}
648 648
 
@@ -1371,9 +1371,9 @@  discard block
 block discarded – undo
1371 1371
 
1372 1372
 			if($compatibility===true || $compatibility===1){
1373 1373
 				$compatibility = '.bsui';
1374
-			}elseif(!$compatibility){
1374
+			} elseif(!$compatibility){
1375 1375
 				$compatibility = '';
1376
-			}else{
1376
+			} else{
1377 1377
 				$compatibility = esc_attr($compatibility);
1378 1378
 			}
1379 1379
 
@@ -1659,9 +1659,9 @@  discard block
 block discarded – undo
1659 1659
 
1660 1660
 			if($compatibility===true || $compatibility===1){
1661 1661
 				$compatibility = '.bsui';
1662
-			}elseif(!$compatibility){
1662
+			} elseif(!$compatibility){
1663 1663
 				$compatibility = '';
1664
-			}else{
1664
+			} else{
1665 1665
 				$compatibility = esc_attr($compatibility);
1666 1666
 			}
1667 1667
 
@@ -2531,7 +2531,9 @@  discard block
 block discarded – undo
2531 2531
 		 * @return mixed
2532 2532
 		 */
2533 2533
 		public static function minify_js($input) {
2534
-			if(trim($input) === "") return $input;
2534
+			if(trim($input) === "") {
2535
+			    return $input;
2536
+			}
2535 2537
 			return preg_replace(
2536 2538
 				array(
2537 2539
 					// Remove comment(s)
@@ -2563,7 +2565,9 @@  discard block
 block discarded – undo
2563 2565
 		 * @return mixed
2564 2566
 		 */
2565 2567
 		public static function minify_css($input) {
2566
-			if(trim($input) === "") return $input;
2568
+			if(trim($input) === "") {
2569
+			    return $input;
2570
+			}
2567 2571
 			return preg_replace(
2568 2572
 				array(
2569 2573
 					// Remove comment(s)
Please login to merge, or discard this patch.
vendor/ayecode/wp-super-duper/includes/class-super-duper-bricks-element.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
4
+if ( ! defined( 'ABSPATH' ) ) {
5
+    exit;
6
+}
7
+// Exit if accessed directly
5 8
 
6 9
 
7 10
 class Super_Duper_Bricks_Element extends \Bricks\Element {
Please login to merge, or discard this patch.
includes/admin/class-getpaid-anonymization-logs.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,10 +80,12 @@
 block discarded – undo
80 80
                         <tr>
81 81
                             <td colspan="5"><?php _e( 'No anonymization logs found.', 'invoicing' ); ?></td>
82 82
                         </tr>
83
-                    <?php else : ?>
83
+                    <?php else {
84
+    : ?>
84 85
                         <?php
85 86
                         foreach ( $logs as $log ) :
86 87
                             $additional_info = json_decode( $log->additional_info, true );
88
+}
87 89
                         ?>
88 90
                             <tr>
89 91
                                 <td><?php echo esc_html( $log->log_id ); ?></td>
Please login to merge, or discard this patch.
vendor/ayecode/wp-super-duper/wp-super-duper.php 1 patch
Braces   +41 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
 			}
@@ -729,7 +729,7 @@  discard block
 block discarded – undo
729 729
 				<?php
730 730
 				if(! empty( $insert_shortcode_function )){
731 731
 					echo $insert_shortcode_function;
732
-				}else{
732
+				} else{
733 733
 
734 734
 				/**
735 735
 				 * Function for super duper insert shortcode.
@@ -2303,7 +2303,7 @@  discard block
 block discarded – undo
2303 2303
 				$p_pl = 'ps-';
2304 2304
 				$p_pr = 'pe-';
2305 2305
 					<?php
2306
-				}else{
2306
+				} else{
2307 2307
 						?>
2308 2308
 				$aui_bs5 = false;
2309 2309
 				$p_ml = 'ml-';
@@ -2531,7 +2531,7 @@  discard block
 block discarded – undo
2531 2531
 					var InnerBlocks = blockEditor.InnerBlocks;
2532 2532
 
2533 2533
 					var term_query_type = '';
2534
-					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 "[]";} ?>;
2534
+					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 "[]";} ?>;
2535 2535
 					const taxonomies_<?php echo str_replace("-","_", $this->id);?> = [{label: "Please wait", value: 0}];
2536 2536
 					const sort_by_<?php echo str_replace("-","_", $this->id);?> = [{label: "Please wait", value: 0}];
2537 2537
 					const MediaUpload = wp.blockEditor.MediaUpload;
@@ -2588,9 +2588,9 @@  discard block
 block discarded – undo
2588 2588
 						$example_inner_blocks = !empty($this->options['example']['innerBlocks']) && is_array($this->options['example']['innerBlocks']) ? 'innerBlocks: ' . wp_json_encode($this->options['example']['innerBlocks']) : '';
2589 2589
 						if( isset( $this->options['example'] ) && $this->options['example'] === false ){
2590 2590
 							// no preview if set to false
2591
-						}elseif( !empty( $example_args ) ){
2591
+						} elseif( !empty( $example_args ) ){
2592 2592
 							echo "example : {attributes:{".$this->array_to_attributes( $example_args )."},$viewport_width},";
2593
-						}elseif( !empty( $this->options['example'] ) ){
2593
+						} elseif( !empty( $this->options['example'] ) ){
2594 2594
 							unset($this->options['example']['viewportWidth']);
2595 2595
 							unset($this->options['example']['innerBlocks']);
2596 2596
 							$example_atts = $this->array_to_attributes( $this->options['example'] );
@@ -2607,7 +2607,7 @@  discard block
 block discarded – undo
2607 2607
 							if(!empty($example_parts)){
2608 2608
 								echo "example : {".implode(',', $example_parts)."},";
2609 2609
 							}
2610
-						}else{
2610
+						} else{
2611 2611
 							echo 'example : {viewportWidth: 500},';
2612 2612
 						}
2613 2613
 
@@ -2792,7 +2792,7 @@  discard block
 block discarded – undo
2792 2792
 							<?php
2793 2793
 							if(!empty($this->options['block-edit-raw'])) {
2794 2794
 								echo $this->options['block-edit-raw']; // strings have to be in single quotes, may cause issues
2795
-							}else{
2795
+							} else{
2796 2796
 							?>
2797 2797
 
2798 2798
 function hasSelectedInnerBlock(props) {
@@ -2927,7 +2927,7 @@  discard block
 block discarded – undo
2927 2927
 $current_screen = function_exists('get_current_screen') ? get_current_screen() : '';
2928 2928
 if(!empty($current_screen->base) && $current_screen->base==='widgets'){
2929 2929
 	echo 'const { deviceType } = "";';
2930
-}else{
2930
+} else{
2931 2931
 ?>
2932 2932
 /** Get device type const. */
2933 2933
 const wpVersion = '<?php global $wp_version; echo esc_attr($wp_version); ?>';
@@ -2991,7 +2991,7 @@  discard block
 block discarded – undo
2991 2991
 										'block_parent_name': parentBlocks.length ? parentBlocks[parentBlocks.length - 1].name : '',
2992 2992
 										'post_id': <?php global $post; if ( isset( $post->ID ) ) {
2993 2993
 										echo $post->ID;
2994
-									}else{echo '0';}?>,
2994
+									} else{echo '0';}?>,
2995 2995
 										'_ajax_nonce': '<?php echo wp_create_nonce( 'super_duper_output_shortcode' );?>'
2996 2996
 									};
2997 2997
 
@@ -3011,7 +3011,7 @@  discard block
 block discarded – undo
3011 3011
 										is_fetching = false;
3012 3012
 										prev_attributes[props.clientId] = props.attributes;
3013 3013
 											 <?php
3014
-										}else{
3014
+										} else{
3015 3015
 										?>
3016 3016
 										props.setAttributes({content: env});
3017 3017
 										is_fetching = false;
@@ -3222,7 +3222,7 @@  discard block
 block discarded – undo
3222 3222
 //
3223 3223
 
3224 3224
 									}
3225
-									}else {
3225
+									} else {
3226 3226
 									?>
3227 3227
 									el(wp.components.PanelBody, {
3228 3228
 											title: '<?php esc_attr_e( "Settings", 'ayecode-connect' ); ?>',
@@ -3248,9 +3248,9 @@  discard block
 block discarded – undo
3248 3248
 								// If the user sets block-output array then build it
3249 3249
 								if ( ! empty( $this->options['block-output'] ) ) {
3250 3250
 								$this->block_element( $this->options['block-output'] );
3251
-							}elseif(!empty($this->options['block-edit-return'])){
3251
+							} elseif(!empty($this->options['block-edit-return'])){
3252 3252
 								   echo $this->options['block-edit-return'];
3253
-							}else{
3253
+							} else{
3254 3254
 								// if no block-output is set then we try and get the shortcode html output via ajax.
3255 3255
 								$block_edit_wrap_tag = !empty($this->options['block_edit_wrap_tag']) ? esc_attr($this->options['block_edit_wrap_tag']) : 'div';
3256 3256
 								?>
@@ -3362,9 +3362,9 @@  discard block
 block discarded – undo
3362 3362
 							   );
3363 3363
 								<?php
3364 3364
 
3365
-							}elseif(!empty($this->options['block-save-return'])){
3365
+							} elseif(!empty($this->options['block-save-return'])){
3366 3366
 								   echo 'return ' . $this->options['block-save-return'];
3367
-							}elseif(!empty($this->options['nested-block'])){
3367
+							} elseif(!empty($this->options['nested-block'])){
3368 3368
 								?>
3369 3369
 							  return el(
3370 3370
 								   '',
@@ -3374,13 +3374,13 @@  discard block
 block discarded – undo
3374 3374
 								 //  el('', {dangerouslySetInnerHTML: {__html: "[/<?php echo $this->options['base_id'];?>]"}})
3375 3375
 							   );
3376 3376
 								<?php
3377
-							}elseif(!empty( $this->options['block-save-return'] ) ){
3377
+							} elseif(!empty( $this->options['block-save-return'] ) ){
3378 3378
 								echo "return ". $this->options['block-edit-return'].";";
3379
-							}elseif(isset( $this->options['block-wrap'] ) && $this->options['block-wrap'] == ''){
3379
+							} elseif(isset( $this->options['block-wrap'] ) && $this->options['block-wrap'] == ''){
3380 3380
 							?>
3381 3381
 							return content;
3382 3382
 							<?php
3383
-							}else{
3383
+							} else{
3384 3384
 							?>
3385 3385
 							var block_wrap = 'div';
3386 3386
 							if (attr.hasOwnProperty("block_wrap")) {
@@ -3431,9 +3431,9 @@  discard block
 block discarded – undo
3431 3431
 				$device_type_icon = '';
3432 3432
 				if($device_type=='Desktop'){
3433 3433
 					$device_type_icon = '<span class="dashicons dashicons-desktop" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>';
3434
-				}elseif($device_type=='Tablet'){
3434
+				} elseif($device_type=='Tablet'){
3435 3435
 					$device_type_icon = '<span class="dashicons dashicons-tablet" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>';
3436
-				}elseif($device_type=='Mobile'){
3436
+				} elseif($device_type=='Mobile'){
3437 3437
 					$device_type_icon = '<span class="dashicons dashicons-smartphone" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>';
3438 3438
 				}
3439 3439
 				echo $element_require;
@@ -3478,7 +3478,7 @@  discard block
 block discarded – undo
3478 3478
 
3479 3479
 					<?php
3480 3480
 					if(false){?></script><?php }
3481
-				}elseif(!empty($args['row']['close'])){
3481
+				} elseif(!empty($args['row']['close'])){
3482 3482
 					if(false){?><script><?php }?>
3483 3483
 						el(
3484 3484
 							'div',
@@ -3487,7 +3487,7 @@  discard block
 block discarded – undo
3487 3487
 							},
3488 3488
 					<?php
3489 3489
 					if(false){?></script><?php }
3490
-				}else{
3490
+				} else{
3491 3491
 					if(false){?><script><?php }?>
3492 3492
 						el(
3493 3493
 							'div',
@@ -3592,9 +3592,9 @@  discard block
 block discarded – undo
3592 3592
 			$device_type_icon = '';
3593 3593
 			if($device_type=='Desktop'){
3594 3594
 				$device_type_icon = '<span class="dashicons dashicons-desktop" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>';
3595
-			}elseif($device_type=='Tablet'){
3595
+			} elseif($device_type=='Tablet'){
3596 3596
 				$device_type_icon = '<span class="dashicons dashicons-tablet" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>';
3597
-			}elseif($device_type=='Mobile'){
3597
+			} elseif($device_type=='Mobile'){
3598 3598
 				$device_type_icon = '<span class="dashicons dashicons-smartphone" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>';
3599 3599
 			}
3600 3600
 
@@ -3657,7 +3657,7 @@  discard block
 block discarded – undo
3657 3657
 				$args['type'] == 'text';
3658 3658
 				// Save numbers as numbers and not strings
3659 3659
 				$value     = "props.attributes.$key ? props.attributes.$key : ''";
3660
-			}else if ( $args['type'] == 'notice' ) {
3660
+			} else if ( $args['type'] == 'notice' ) {
3661 3661
 
3662 3662
 				$notice_message = !empty($args['desc']) ? addslashes($args['desc']) : '';
3663 3663
 				$notice_status = !empty($args['status']) ? esc_attr($args['status']) : 'info';
@@ -3732,7 +3732,7 @@  discard block
 block discarded – undo
3732 3732
 							$key: value
3733 3733
 						});
3734 3734
 					},";
3735
-			}elseif ( $args['type'] == 'gradient' ) {
3735
+			} elseif ( $args['type'] == 'gradient' ) {
3736 3736
 				$type = 'GradientPicker';
3737 3737
 				$extra .= "gradients: [{
3738 3738
 			name: 'Vivid cyan blue to vivid purple',
@@ -3771,7 +3771,7 @@  discard block
 block discarded – undo
3771 3771
 			slug: 'cool-to-warm-spectrum',
3772 3772
 		}],";
3773 3773
 
3774
-			}elseif ( $args['type'] == 'image' ) {
3774
+			} elseif ( $args['type'] == 'image' ) {
3775 3775
 //                print_r($args);
3776 3776
 
3777 3777
 				$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,{
@@ -3908,8 +3908,7 @@  discard block
 block discarded – undo
3908 3908
 				$onchange = "";
3909 3909
 
3910 3910
 				//$inside_elements = ",el('div',{},'file upload')";
3911
-			}
3912
-			elseif ( $args['type'] == 'checkbox' ) {
3911
+			} elseif ( $args['type'] == 'checkbox' ) {
3913 3912
 				$type = 'CheckboxControl';
3914 3913
 				$extra .= "checked: props.attributes.$key,";
3915 3914
 				$onchange = "props.setAttributes({ $key: ! props.attributes.$key } )";
@@ -3921,9 +3920,9 @@  discard block
 block discarded – undo
3921 3920
 
3922 3921
 				if($args['name'] == 'category' && !empty($args['post_type_linked'])){
3923 3922
 					$options .= "options: taxonomies_".str_replace("-","_", $this->id).",";
3924
-				}elseif($args['name'] == 'sort_by' && !empty($args['post_type_linked'])){
3923
+				} elseif($args['name'] == 'sort_by' && !empty($args['post_type_linked'])){
3925 3924
 					$options .= "options: sort_by_".str_replace("-","_", $this->id).",";
3926
-				}else {
3925
+				} else {
3927 3926
 
3928 3927
 					if ( ! empty( $args['options'] ) ) {
3929 3928
 						$options .= "options: [";
@@ -4087,7 +4086,7 @@  discard block
 block discarded – undo
4087 4086
 				foreach ( $custom_attributes as $key => $val ) {
4088 4087
 					if(is_array($val)){
4089 4088
 						$attributes .= $key.': {'.$this->array_to_attributes( $val, $html ).'},';
4090
-					}else{
4089
+					} else{
4091 4090
 						$attributes .= $html ?  " $key='$val' " : "'$key': '$val',";
4092 4091
 					}
4093 4092
 				}
@@ -4128,7 +4127,7 @@  discard block
 block discarded – undo
4128 4127
 
4129 4128
 							if($new_args['element']=='InnerBlocks'){
4130 4129
 								echo "\n el( InnerBlocks, {";
4131
-							}elseif($new_args['element']=='innerBlocksProps'){
4130
+							} elseif($new_args['element']=='innerBlocksProps'){
4132 4131
 								$element = isset($new_args['inner_element']) ? esc_attr($new_args['inner_element']) : 'div';
4133 4132
 							  //  echo "\n el( 'section', wp.blockEditor.useInnerBlocksProps( blockProps, {";
4134 4133
 //                                echo $save ? "\n el( '$element', wp.blockEditor.useInnerBlocksProps.save( " : "\n el( '$element', wp.blockEditor.useInnerBlocksProps( ";
@@ -4141,11 +4140,11 @@  discard block
 block discarded – undo
4141 4140
 							//    echo '###';
4142 4141
 
4143 4142
 							  //  echo '###';
4144
-							}elseif($new_args['element']=='BlocksProps'){
4143
+							} elseif($new_args['element']=='BlocksProps'){
4145 4144
 
4146 4145
 								if ( isset($new_args['if_inner_element']) ) {
4147 4146
 									$element = $new_args['if_inner_element'];
4148
-								}else {
4147
+								} else {
4149 4148
 									$element = isset($new_args['inner_element']) ? "'".esc_attr($new_args['inner_element'])."'" : "'div'";
4150 4149
 								}
4151 4150
 
@@ -4156,7 +4155,7 @@  discard block
 block discarded – undo
4156 4155
 
4157 4156
 							   // echo "} ),";
4158 4157
 
4159
-							}else{
4158
+							} else{
4160 4159
 								echo "\n el( '" . $new_args['element'] . "', {";
4161 4160
 							}
4162 4161
 
@@ -4181,7 +4180,7 @@  discard block
 block discarded – undo
4181 4180
 
4182 4181
 									if ( $new_key === 'content' ) {
4183 4182
 										echo "'" . $this->block_props_replace( wp_slash( $new_value ) ) . "'";
4184
-									}else if ( $new_key === 'if_content' ) {
4183
+									} else if ( $new_key === 'if_content' ) {
4185 4184
 										echo  $this->block_props_replace(  $new_value  );
4186 4185
 									}
4187 4186
 
@@ -4211,7 +4210,7 @@  discard block
 block discarded – undo
4211 4210
 
4212 4211
 							if($new_args['element']=='innerBlocksProps' || $new_args['element']=='xBlocksProps'){
4213 4212
 								echo "))";// end content
4214
-							}else{
4213
+							} else{
4215 4214
 								echo ")";// end content
4216 4215
 							}
4217 4216
 
@@ -4837,11 +4836,11 @@  discard block
 block discarded – undo
4837 4836
 		public function get_widget_icon($icon = 'box-top', $title = ''){
4838 4837
 			if($icon=='box-top'){
4839 4838
 				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>';
4840
-			}elseif($icon=='box-right'){
4839
+			} elseif($icon=='box-right'){
4841 4840
 				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>';
4842
-			}elseif($icon=='box-bottom'){
4841
+			} elseif($icon=='box-bottom'){
4843 4842
 				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>';
4844
-			}elseif($icon=='box-left'){
4843
+			} elseif($icon=='box-left'){
4845 4844
 				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>';
4846 4845
 			}
4847 4846
 		}
Please login to merge, or discard this patch.