config->get('developer_sass')) { $scss = new \ScssPhp\ScssPhp\Compiler(); $scss->setImportPaths(DIR_APPLICATION . 'view/stylesheet/'); $output = $scss->compile('@import "' . $filename . '.scss"'); $handle = fopen($stylesheet, 'w'); flock($handle, LOCK_EX); fwrite($handle, $output); fflush($handle); flock($handle, LOCK_UN); fclose($handle); } } } } }