Passed
Push — master ( 9dee83...fe7410 )
by Stiofan
06:39
created
vendor/ayecode/wp-ayecode-ui/includes/ayecode-ui-settings.php 1 patch
Braces   +14 added lines, -10 removed lines patch added patch discarded remove patch
@@ -539,7 +539,7 @@  discard block
 block discarded – undo
539 539
 					// custom changes
540 540
 					if ( $load_fse ) {
541 541
 						wp_add_inline_style( 'ayecode-ui-fse', self::custom_css($compatibility, true) );
542
-					}else{
542
+					} else{
543 543
 						wp_add_inline_style( 'ayecode-ui', self::custom_css($compatibility) );
544 544
 					}
545 545
 				}
@@ -559,7 +559,7 @@  discard block
 block discarded – undo
559 559
 			ob_start();
560 560
 			if ( $aui_bs5 ) {
561 561
 				include_once( dirname( __FILE__ ) . '/inc/bs5-js.php' );
562
-			}else{
562
+			} else{
563 563
 				include_once( dirname( __FILE__ ) . '/inc/bs4-js.php' );
564 564
             }
565 565
 
@@ -630,7 +630,7 @@  discard block
 block discarded – undo
630 630
 
631 631
 			if( is_admin() && !$this->is_aui_screen()){
632 632
 				// don't add wp-admin scripts if not requested to
633
-			}else {
633
+			} else {
634 634
 
635 635
 				$js_setting = current_action() == 'wp_enqueue_scripts' ? 'js' : 'js_backend';
636 636
 
@@ -645,7 +645,7 @@  discard block
 block discarded – undo
645 645
 				// iconpicker
646 646
 				if ( defined( 'FAS_ICONPICKER_JS_URL' ) ) {
647 647
 					wp_register_script( 'iconpicker', FAS_ICONPICKER_JS_URL, array(), $this->version );
648
-				}else{
648
+				} else{
649 649
 					wp_register_script( 'iconpicker', $this->url . 'assets/js/fa-iconpicker.min.js', array(), $this->version );
650 650
 				}
651 651
 
@@ -1340,9 +1340,9 @@  discard block
 block discarded – undo
1340 1340
 
1341 1341
 			if($compatibility===true || $compatibility===1){
1342 1342
 				$compatibility = '.bsui';
1343
-			}elseif(!$compatibility){
1343
+			} elseif(!$compatibility){
1344 1344
 				$compatibility = '';
1345
-			}else{
1345
+			} else{
1346 1346
 				$compatibility = esc_attr($compatibility);
1347 1347
 			}
1348 1348
 
@@ -1628,9 +1628,9 @@  discard block
 block discarded – undo
1628 1628
 
1629 1629
 			if($compatibility===true || $compatibility===1){
1630 1630
 				$compatibility = '.bsui';
1631
-			}elseif(!$compatibility){
1631
+			} elseif(!$compatibility){
1632 1632
 				$compatibility = '';
1633
-			}else{
1633
+			} else{
1634 1634
 				$compatibility = esc_attr($compatibility);
1635 1635
 			}
1636 1636
 
@@ -2500,7 +2500,9 @@  discard block
 block discarded – undo
2500 2500
 		 * @return mixed
2501 2501
 		 */
2502 2502
 		public static function minify_js($input) {
2503
-			if(trim($input) === "") return $input;
2503
+			if(trim($input) === "") {
2504
+			    return $input;
2505
+			}
2504 2506
 			return preg_replace(
2505 2507
 				array(
2506 2508
 					// Remove comment(s)
@@ -2532,7 +2534,9 @@  discard block
 block discarded – undo
2532 2534
 		 * @return mixed
2533 2535
 		 */
2534 2536
 		public static function minify_css($input) {
2535
-			if(trim($input) === "") return $input;
2537
+			if(trim($input) === "") {
2538
+			    return $input;
2539
+			}
2536 2540
 			return preg_replace(
2537 2541
 				array(
2538 2542
 					// Remove comment(s)
Please login to merge, or discard this patch.