public static function initDocs()
{
if (Analyzer::$docs === null) {
$config = Config::factory();
$pathDocs = $config->dir_root . '/data/analyzers.sqlite';
self::$docs = new Docs($pathDocs);
}
}
public function hasResults() { Analyzer::initDocs(); $data = Analyzer::$datastore->getRow('composer'); $this->report = array(); foreach ($data as $d) { $this->report[$d['component'] . ' (' . $d['version'] . ')'] = true; } return count($this->report) > 0; }