protected function extractImports($importsFile)
    {
        $str = file_get_contents($importsFile);

        preg_match_all('/@import "(?!variables)(?<imports>[\w-_\.]+)";/', $str, $matches);

        return array_map('trim', $matches['imports']);
    }
protected function extractImports($importsFile)
    {
        $str = file_get_contents($importsFile);

        preg_match_all('/@import "(?!variables)(?<imports>[\w-_\.]+)";/', $str, $matches);

        return array_map('trim', $matches['imports']);
    }
protected function extractImports ( $ importsFile ) { $ str = file_get_contents ( $ importsFile ) ; preg_match_all ( '/@import "(?!variables)(?<imports>[\w-_\.]+)";/' , $ str , $ matches ) ; return array_map ( 'trim' , $ matches [ 'imports' ] ) ; }
Extract the imports from the import file.

@param string $importsFile

@return array The extracted imports
Extract the imports from the import file .