protected function write($filename, $content)
{
if (!$this->dry_run) {
if (!\phplinter\Path::write_file($filename, $content)) {
die("Unable to create '{$filename}'...");
}
}
if ($this->config->check(OPT_VERBOSE)) {
echo "Wrote to file `{$filename}`\n";
}
}