<exclude-pattern>*/zend/*</exclude-pattern>
<exclude-pattern>*/CodeSniff/*</exclude-pattern>
<exclude-pattern>*/parsedown/*</exclude-pattern>
+ <exclude-pattern>*/scssphp/*</exclude-pattern>
<rule ref="Generic.Classes.DuplicateClassName" />
<rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop" />
<?php
namespace wcf\system\style;
+use Leafo\ScssPhp\Compiler;
use wcf\data\application\Application;
use wcf\data\option\Option;
use wcf\data\style\Style;
*/
protected function init() {
require_once(WCF_DIR.'lib/system/style/scssphp/scss.inc.php');
- $this->compiler = new \Leafo\ScssPhp\Compiler();
+ $this->compiler = new Compiler();
$this->compiler->setImportPaths([WCF_DIR]);
}
WCF_DIR.'acp/style/style',
$files,
$variables,
- '',//file_get_contents(WCF_DIR.'acp/style/blueTemptation/individual.scss'),
+ '',
new Callback(function($content) {
// fix relative paths
$content = str_replace('../font/', '../../font/', $content);