Passed
Push — master ( 5d2154...beaeba )
by Brian
03:53
created
vendor/ayecode/wp-super-duper/wp-super-duper.php 1 patch
Braces   +9 added lines, -10 removed lines patch added patch discarded remove patch
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
 				<?php
662 662
 				if(! empty( $insert_shortcode_function )){
663 663
 					echo $insert_shortcode_function;
664
-				}else{
664
+				} else{
665 665
 
666 666
 				/**
667 667
 				 * Function for super duper insert shortcode.
@@ -1647,7 +1647,7 @@  discard block
 block discarded – undo
1647 1647
 					var prev_attributes = [];
1648 1648
 
1649 1649
 					var term_query_type = '';
1650
-					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 "[]";} ?>;
1650
+					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 "[]";} ?>;
1651 1651
 					const taxonomies_<?php echo str_replace("-","_", $this->id);?> = [{label: "Please wait", value: 0}];
1652 1652
 					const sort_by_<?php echo str_replace("-","_", $this->id);?> = [{label: "Please wait", value: 0}];
1653 1653
 
@@ -1784,7 +1784,7 @@  discard block
 block discarded – undo
1784 1784
 
1785 1785
 								// taxonomies
1786 1786
 								if( $value && 'post_type' in prev_attributes[props.id] && 'category' in prev_attributes[props.id] && run ){
1787
-									wp.apiFetch({path: "<?php if(isset($this->arguments['post_type']['onchange_rest']['path'])){echo $this->arguments['post_type']['onchange_rest']['path'];}else{'/wp/v2/"+$value+"/categories';} ?>"}).then(terms => {
1787
+									wp.apiFetch({path: "<?php if(isset($this->arguments['post_type']['onchange_rest']['path'])){echo $this->arguments['post_type']['onchange_rest']['path'];} else{'/wp/v2/"+$value+"/categories';} ?>"}).then(terms => {
1788 1788
 										while (taxonomies_<?php echo str_replace("-","_", $this->id);?>.length) {
1789 1789
 										taxonomies_<?php echo str_replace("-","_", $this->id);?>.pop();
1790 1790
 									}
@@ -1958,7 +1958,7 @@  discard block
 block discarded – undo
1958 1958
 									$panel_count ++;
1959 1959
 
1960 1960
 									}
1961
-									}else {
1961
+									} else {
1962 1962
 									?>
1963 1963
 									el(wp.components.PanelBody, {
1964 1964
 											title: '<?php esc_attr_e( "Settings" ); ?>',
@@ -1982,7 +1982,7 @@  discard block
 block discarded – undo
1982 1982
 								// If the user sets block-output array then build it
1983 1983
 								if ( ! empty( $this->options['block-output'] ) ) {
1984 1984
 								$this->block_element( $this->options['block-output'] );
1985
-							}else{
1985
+							} else{
1986 1986
 								// if no block-output is set then we try and get the shortcode html output via ajax.
1987 1987
 								?>
1988 1988
 								el('div', {
@@ -2052,7 +2052,7 @@  discard block
 block discarded – undo
2052 2052
 							?>
2053 2053
 							return content;
2054 2054
 							<?php
2055
-							}else{
2055
+							} else{
2056 2056
 							?>
2057 2057
 							var block_wrap = 'div';
2058 2058
 							if (attr.hasOwnProperty("block_wrap")) {
@@ -2157,8 +2157,7 @@  discard block
 block discarded – undo
2157 2157
                             $key: value
2158 2158
                         });
2159 2159
                     },";
2160
-			}
2161
-			elseif ( $args['type'] == 'checkbox' ) {
2160
+			} elseif ( $args['type'] == 'checkbox' ) {
2162 2161
 				$type = 'CheckboxControl';
2163 2162
 				$extra .= "checked: props.attributes.$key,";
2164 2163
 				$onchange = "props.setAttributes({ $key: ! props.attributes.$key } )";
@@ -2169,9 +2168,9 @@  discard block
 block discarded – undo
2169 2168
 
2170 2169
 				if($args['name'] == 'category' && !empty($args['post_type_linked'])){
2171 2170
 					$options .= "options: taxonomies_".str_replace("-","_", $this->id).",";
2172
-				}elseif($args['name'] == 'sort_by' && !empty($args['post_type_linked'])){
2171
+				} elseif($args['name'] == 'sort_by' && !empty($args['post_type_linked'])){
2173 2172
 					$options .= "options: sort_by_".str_replace("-","_", $this->id).",";
2174
-				}else {
2173
+				} else {
2175 2174
 
2176 2175
 					if ( ! empty( $args['options'] ) ) {
2177 2176
 						$options .= "options: [";
Please login to merge, or discard this patch.
vendor/ayecode/wp-ayecode-ui/includes/ayecode-ui-settings.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -126,8 +126,12 @@  discard block
 block discarded – undo
126 126
 		public function constants(){
127 127
 			define('AUI_PRIMARY_COLOR_ORIGINAL', "#1e73be");
128 128
 			define('AUI_SECONDARY_COLOR_ORIGINAL', '#6c757d');
129
-			if (!defined('AUI_PRIMARY_COLOR')) define('AUI_PRIMARY_COLOR', AUI_PRIMARY_COLOR_ORIGINAL);
130
-			if (!defined('AUI_SECONDARY_COLOR')) define('AUI_SECONDARY_COLOR', AUI_SECONDARY_COLOR_ORIGINAL);
129
+			if (!defined('AUI_PRIMARY_COLOR')) {
130
+			    define('AUI_PRIMARY_COLOR', AUI_PRIMARY_COLOR_ORIGINAL);
131
+			}
132
+			if (!defined('AUI_SECONDARY_COLOR')) {
133
+			    define('AUI_SECONDARY_COLOR', AUI_SECONDARY_COLOR_ORIGINAL);
134
+			}
131 135
 		}
132 136
 
133 137
 		/**
@@ -822,12 +826,12 @@  discard block
 block discarded – undo
822 826
 				is_admin() ? wp_enqueue_script( 'bootstrap-js-bundle', '', null, null, true ) : wp_enqueue_script( 'bootstrap-js-bundle');
823 827
 				$script = $this->inline_script();
824 828
 				wp_add_inline_script( 'bootstrap-js-bundle', $script );
825
-			}elseif($this->settings[$js_setting]=='popper'){
829
+			} elseif($this->settings[$js_setting]=='popper'){
826 830
 				$url = $this->url.'assets/js/popper.min.js';
827 831
 				wp_register_script( 'bootstrap-js-popper', $url, array('jquery'), $this->latest );
828 832
 				wp_enqueue_script( 'bootstrap-js-popper' );
829 833
 				$load_inline = true;
830
-			}else{
834
+			} else{
831 835
 				$load_inline = true;
832 836
 			}
833 837
 
Please login to merge, or discard this patch.
vendor/ayecode/wp-ayecode-ui/includes/class-aui.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
 		if ( ! $result && $option) {
86 86
 			if( $option == 'color_primary' ){
87 87
 				$result = AUI_PRIMARY_COLOR;
88
-			}elseif( $option == 'color_secondary' ){
88
+			} elseif( $option == 'color_secondary' ){
89 89
 				$result = AUI_SECONDARY_COLOR;
90 90
 			}
91 91
 		}
Please login to merge, or discard this patch.