@@ -126,8 +126,12 @@ discard block |
||
| 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 | /** |
@@ -233,7 +237,7 @@ discard block |
||
| 233 | 237 | |
| 234 | 238 | if( is_admin() && !$this->is_aui_screen()){ |
| 235 | 239 | // don't add wp-admin scripts if not requested to |
| 236 | - }else{ |
|
| 240 | + } else{ |
|
| 237 | 241 | $css_setting = current_action() == 'wp_enqueue_scripts' ? 'css' : 'css_backend'; |
| 238 | 242 | |
| 239 | 243 | $rtl = is_rtl() ? '-rtl' : ''; |
@@ -1051,7 +1055,7 @@ discard block |
||
| 1051 | 1055 | |
| 1052 | 1056 | if( is_admin() && !$this->is_aui_screen()){ |
| 1053 | 1057 | // don't add wp-admin scripts if not requested to |
| 1054 | - }else { |
|
| 1058 | + } else { |
|
| 1055 | 1059 | |
| 1056 | 1060 | $js_setting = current_action() == 'wp_enqueue_scripts' ? 'js' : 'js_backend'; |
| 1057 | 1061 | |
@@ -2093,7 +2097,9 @@ discard block |
||
| 2093 | 2097 | * @return mixed |
| 2094 | 2098 | */ |
| 2095 | 2099 | public static function minify_js($input) { |
| 2096 | - if(trim($input) === "") return $input; |
|
| 2100 | + if(trim($input) === "") { |
|
| 2101 | + return $input; |
|
| 2102 | + } |
|
| 2097 | 2103 | return preg_replace( |
| 2098 | 2104 | array( |
| 2099 | 2105 | // Remove comment(s) |
@@ -2125,7 +2131,9 @@ discard block |
||
| 2125 | 2131 | * @return mixed |
| 2126 | 2132 | */ |
| 2127 | 2133 | public static function minify_css($input) { |
| 2128 | - if(trim($input) === "") return $input; |
|
| 2134 | + if(trim($input) === "") { |
|
| 2135 | + return $input; |
|
| 2136 | + } |
|
| 2129 | 2137 | return preg_replace( |
| 2130 | 2138 | array( |
| 2131 | 2139 | // Remove comment(s) |