}
foreach ($inputs as $infile) {
// FIXME: does not beautify. Document.
- file_put_contents($outpath, $this->smarty->fetch($infile) ."\n", FILE_APPEND);
+ file_put_contents($outpath, $this->smarty->fetch($infile) . "\n", FILE_APPEND);
}
}
$this->beautifier->setOutputFile($outpath);
$this->beautifier->process();
$this->beautifier->save();
- } else {
+ }
+ else {
file_put_contents($outpath, $renderedContents);
}
}
}
/**
- * Clear the smarty cache and assign default values
+ * Clear the smarty cache and assign default values.
* FIXME: unused cos we no longer do evil singleton magick
*/
protected function reset() {
$this->smarty->clear_all_assign();
$this->smarty->clear_all_cache();
}
+
}