public function flush()
{
if ($this->out && $this->outTarget !== 'php://stderr') {
fclose($this->out);
}
if ($this->printsHTML === TRUE && $this->outTarget !== NULL && strpos($this->outTarget, 'php://') !== 0 && strpos($this->outTarget, 'socket://') !== 0 && extension_loaded('tidy')) {
file_put_contents($this->outTarget, tidy_repair_file($this->outTarget, array('indent' => TRUE, 'wrap' => 0), 'utf8'));
}
}