['all']]), new TwigFilter('css_minify', [$this, 'minifyCss'], ['is_safe' => ['all']]), ]; } /** * @return TwigTest[] */ public function getTests(): array { return [ new TwigTest('color light', fn (string $hexColor) => FocusModel::isLightColor($hexColor)), ]; } public function compileLess(string $less): string { $parser = new \Less_Parser(); return $parser->parse($less)->getCss(); } public function minifyCss(string $css): string { return (new Minify\CSS($css))->minify(); } }