protected function expandImports(&$code)
{
if (true === $this->view->expand_imports) {
preg_match_all('|\\@import\\s([^;]+);|is', str_replace('&', '&', $code), $m);
if (!empty($m[0])) {
foreach ($m[0] as $k => $v) {
$import_url = $m[1][$k];
if (!empty($import_url)) {
$import_content = $this->_getImportContent($import_url);
if (!empty($import_content)) {
$code = str_replace($m[0][$k], $import_content, $code);
}
}
}
}
}
}