Fix indentation for SCSS functions in StyleCompiler
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 25 Feb 2021 15:46:03 +0000 (16:46 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 25 Feb 2021 15:46:03 +0000 (16:46 +0100)
wcfsetup/install/files/lib/system/style/StyleCompiler.class.php

index fc400e45416d8d5b0e9e7bf52a027e618e5308f9..fc1cbcfeece56ce86fc555882d1268086f8f63df 100644 (file)
@@ -423,22 +423,22 @@ final class StyleCompiler extends SingletonFactory
 
         if (ApplicationHandler::getInstance()->isMultiDomainSetup()) {
             $content .= <<<'EOT'
-                               @function getFont($filename, $family: "/", $version: "") {
-                                       @return "../font/getFont.php?family=" + $family + "&filename=" + $filename + "&v=" + $version;
-                               }
+                @function getFont($filename, $family: "/", $version: "") {
+                    @return "../font/getFont.php?family=" + $family + "&filename=" + $filename + "&v=" + $version;
+                }
 EOT;
         } else {
             $content .= <<<'EOT'
-                               @function getFont($filename, $family: "/", $version: "") {
-                                       @if ($family != "") {
-                                               $family: "families/" + $family + "/";
-                                       }
-                                       @if ($version != "") {
-                                               $version: "?v=" + $version;
-                                       }
-                                       
-                                       @return "../font/" + $family + $filename + $version;
-                               }
+                @function getFont($filename, $family: "/", $version: "") {
+                    @if ($family != "") {
+                        $family: "families/" + $family + "/";
+                    }
+                    @if ($version != "") {
+                        $version: "?v=" + $version;
+                    }
+                    
+                    @return "../font/" + $family + $filename + $version;
+                }
 EOT;
         }