Browse Source

Minor - format code

Julio 8 years ago
parent
commit
63c0c3759e
1 changed files with 10 additions and 5 deletions
  1. 10 5
      main/inc/lib/template.lib.php

+ 10 - 5
main/inc/lib/template.lib.php

@@ -533,7 +533,6 @@ class Template
         }
 
         // Default CSS Bootstrap
-
         $bowerCSSFiles = [
             'bootstrap-daterangepicker/daterangepicker-bs3.css',
             'fontawesome/css/font-awesome.min.css',
@@ -568,14 +567,20 @@ class Template
             $this->assign('css_static_file_to_string', $css_file_to_string);
         }
     }
-    public function setCSSEditor() {
+
+    /**
+     *
+     */
+    public function setCSSEditor()
+    {
         $cssEditor = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'editor.css');
-            if (is_file(api_get_path(SYS_CSS_PATH).'themes/'.$this->theme.'/editor.css')) {
-                $cssEditor = api_get_path(WEB_CSS_PATH).'themes/'.$this->theme.'/editor.css';
-            }
+        if (is_file(api_get_path(SYS_CSS_PATH).'themes/'.$this->theme.'/editor.css')) {
+            $cssEditor = api_get_path(WEB_CSS_PATH).'themes/'.$this->theme.'/editor.css';
+        }
 
         $this->assign('cssEditor', $cssEditor);
     }
+
     /**
      * Prepare custom CSS to be added at the very end of the <head> section
      * @return void