private static function compileSassFileWithLeafoScss(string $path, array $directories)
    {
        if (!file_exists($path)) {
            return "";
        }
        
        if (!empty($path)) {
            $directories[] = dirname($path);
        }
        
        if (self::$sassCompilerInstance == null) {
            self::$sassCompilerInstance = self::getLeafoScssInstance();
        }
        self::updateLeafoScssInstance(self::$sassCompilerInstance, $directories);
        
        return self::$sassCompilerInstance->compile('@import "' . $path . '";');
    }
private static function compileSassFileWithLeafoScss(string $path, array $directories)
    {
        if (!file_exists($path)) {
            return "";
        }
        
        if (!empty($path)) {
            $directories[] = dirname($path);
        }
        
        if (self::$sassCompilerInstance == null) {
            self::$sassCompilerInstance = self::getLeafoScssInstance();
        }
        self::updateLeafoScssInstance(self::$sassCompilerInstance, $directories);
        
        return self::$sassCompilerInstance->compile('@import "' . $path . '";');
    }
private static function compileSassFileWithLeafoScss ( string $ path , array $ directories ) { if ( ! file_exists ( $ path ) ) { return "" ; } if ( ! empty ( $ path ) ) { $ directories [ ] = dirname ( $ path ) ; } if ( self :: $ sassCompilerInstance == null ) { self :: $ sassCompilerInstance = self :: getLeafoScssInstance ( ) ; } self :: updateLeafoScssInstance ( self :: $ sassCompilerInstance , $ directories ) ; return self :: $ sassCompilerInstance -> compile ( '@import "' . $ path . '";' ) ; }
Compile Sass file using Leafo's ScssPhp compiler.

@link https://github.com/leafo/scssphp

@param string $path
Path to the file to compile.

@param array $directories
The import directories to make available when compiling.

@return string Compiled Sass content.
Compile Sass file using Leafo s ScssPhp compiler .