Passed
Push — master ( d57dff...81fed3 )
by Brian
05:18
created
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('select2','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.