protected function OneFile($title)
{
$css = new \Stdclass();
$css->displayTitles = true;
$css->titles = array('Code', 'Analyzer', 'Line');
$css->sort = $css->titles;
$return = $this->formatText('All results for the file : ' . $title, 'textLead');
$data = array();
$sqliteTitle = $this->dump->escapeString($title);
$sqlQuery = <<<SQL
SELECT fullcode as Code, analyzer AS Analyzer, line AS Line FROM results
WHERE file="{$sqliteTitle}" AND
analyzer IN {$this->themesList}
SQL;
$res = $this->dump->query($sqlQuery);
while ($row = $res->fetchArray(SQLITE3_ASSOC)) {
$analyzer = Analyzer::getInstance($row['Analyzer']);
$row['File'] = $analyzer->getDescription()->getName();
$data[] = $row;
}
$return .= $this->formatHorizontal($data, $css);
return $return;
}