protected function _parse($report) { $out = array(); foreach ($report as $_) { $t = array('message' => $_['message'], 'line' => $_['line'], 'flag' => $_['flag']); if ($_['where'] != 'commment') { $t['where'] = $_['where']; } $out[] = $t; } return $out; }