public function toCli($report, $format = "| {F} | {M} | `{W}` Line: {L}\n")
{
$fcolors = array('E' => 'red', 'W' => 'blue', 'C' => 'brown', 'D' => array(1, 'brown'), 'I' => 'green', 'R' => 'purple', 'S' => 'cyan', 'F' => array(1, 'black'));
foreach ($report as $_) {
$out = str_replace('{F}', $this->color(str_pad($_['flag'], 3), $fcolors[$_['flag'][0]]), $format);
$out = str_replace('{M}', str_pad($_['message'], 50), $out);
$out = str_replace('{W}', $_['where'], $out);
$out = str_replace('{L}', $_['line'], $out);
echo $out;
}
}