<?php
namespace wcf\system\style;
-use Leafo\ScssPhp\Compiler;
+use ScssPhp\ScssPhp\Compiler;
+use ScssPhp\ScssPhp\Formatter\Crunched as CrunchedFormatter;
use wcf\data\application\Application;
use wcf\data\option\Option;
use wcf\data\style\Style;
* Provides access to the SCSS PHP compiler.
*
* @author Alexander Ebert
- * @copyright 2001-2019 WoltLab GmbH
+ * @copyright 2001-2020 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\System\Style
*/
class StyleCompiler extends SingletonFactory {
/**
* SCSS compiler object
- * @var \Leafo\ScssPhp\Compiler
+ * @var Compiler
*/
protected $compiler = null;
}
try {
- $this->compiler->setFormatter('Leafo\ScssPhp\Formatter\Crunched');
+ $this->compiler->setFormatter(CrunchedFormatter::class);
$content = $this->compiler->compile($scss);
}
catch (\Exception $e) {