@@ -459,7 +459,7 @@ discard block |
||
459 | 459 | |
460 | 460 | if( is_admin() && !$this->is_aui_screen()){ |
461 | 461 | // don't add wp-admin scripts if not requested to |
462 | - }else{ |
|
462 | + } else{ |
|
463 | 463 | $css_setting = current_action() == 'wp_enqueue_scripts' ? 'css' : 'css_backend'; |
464 | 464 | |
465 | 465 | $rtl = is_rtl() && ! $aui_bs5 ? '-rtl' : ''; |
@@ -549,7 +549,7 @@ discard block |
||
549 | 549 | // custom changes |
550 | 550 | if ( $load_fse ) { |
551 | 551 | wp_add_inline_style( 'ayecode-ui-fse', self::custom_css($compatibility) ); |
552 | - }else{ |
|
552 | + } else{ |
|
553 | 553 | wp_add_inline_style( 'ayecode-ui', self::custom_css($compatibility) ); |
554 | 554 | |
555 | 555 | } |
@@ -573,7 +573,7 @@ discard block |
||
573 | 573 | ob_start(); |
574 | 574 | if ( $aui_bs5 ) { |
575 | 575 | include_once( dirname( __FILE__ ) . '/inc/bs5-js.php' ); |
576 | - }else{ |
|
576 | + } else{ |
|
577 | 577 | include_once( dirname( __FILE__ ) . '/inc/bs4-js.php' ); |
578 | 578 | } |
579 | 579 | |
@@ -644,7 +644,7 @@ discard block |
||
644 | 644 | |
645 | 645 | if( is_admin() && !$this->is_aui_screen()){ |
646 | 646 | // don't add wp-admin scripts if not requested to |
647 | - }else { |
|
647 | + } else { |
|
648 | 648 | |
649 | 649 | $js_setting = current_action() == 'wp_enqueue_scripts' ? 'js' : 'js_backend'; |
650 | 650 | |
@@ -1067,7 +1067,7 @@ discard block |
||
1067 | 1067 | $colors[$color['slug']] = esc_attr($color['color']); |
1068 | 1068 | } |
1069 | 1069 | } |
1070 | - }else{ |
|
1070 | + } else{ |
|
1071 | 1071 | $settings = get_option('aui_options'); |
1072 | 1072 | $colors = array( |
1073 | 1073 | 'primary' => ! empty( $settings['color_primary'] ) ? $settings['color_primary'] : AUI_PRIMARY_COLOR, |
@@ -1204,9 +1204,9 @@ discard block |
||
1204 | 1204 | |
1205 | 1205 | if($compatibility===true || $compatibility===1){ |
1206 | 1206 | $compatibility = '.bsui'; |
1207 | - }elseif(!$compatibility){ |
|
1207 | + } elseif(!$compatibility){ |
|
1208 | 1208 | $compatibility = ''; |
1209 | - }else{ |
|
1209 | + } else{ |
|
1210 | 1210 | $compatibility = esc_attr($compatibility); |
1211 | 1211 | } |
1212 | 1212 | |
@@ -1474,9 +1474,9 @@ discard block |
||
1474 | 1474 | |
1475 | 1475 | if($compatibility===true || $compatibility===1){ |
1476 | 1476 | $compatibility = '.bsui'; |
1477 | - }elseif(!$compatibility){ |
|
1477 | + } elseif(!$compatibility){ |
|
1478 | 1478 | $compatibility = ''; |
1479 | - }else{ |
|
1479 | + } else{ |
|
1480 | 1480 | $compatibility = esc_attr($compatibility); |
1481 | 1481 | } |
1482 | 1482 | |
@@ -2342,7 +2342,9 @@ discard block |
||
2342 | 2342 | * @return mixed |
2343 | 2343 | */ |
2344 | 2344 | public static function minify_js($input) { |
2345 | - if(trim($input) === "") return $input; |
|
2345 | + if(trim($input) === "") { |
|
2346 | + return $input; |
|
2347 | + } |
|
2346 | 2348 | return preg_replace( |
2347 | 2349 | array( |
2348 | 2350 | // Remove comment(s) |
@@ -2374,7 +2376,9 @@ discard block |
||
2374 | 2376 | * @return mixed |
2375 | 2377 | */ |
2376 | 2378 | public static function minify_css($input) { |
2377 | - if(trim($input) === "") return $input; |
|
2379 | + if(trim($input) === "") { |
|
2380 | + return $input; |
|
2381 | + } |
|
2378 | 2382 | return preg_replace( |
2379 | 2383 | array( |
2380 | 2384 | // Remove comment(s) |