/** ----------------------------------------------------------------------+ * @desc Analyse single file * @param String Filename ----------------------------------------------------------------------+ */ protected function lint_file($file) { $linter = new Linter($file, $this->config); if ($this->config->check(OPT_HARVEST_DOCS)) { $linter->lint(); $reporter = new Report\Harvest($this->config); $reporter->create($linter->nodes(), $linter->penalty()); } else { $this->reporter->create(array($linter->lint()), $linter->penalty(), $file); } }