/** ----------------------------------------------------------------------+ * Analyse node * @return Array Reports ----------------------------------------------------------------------+ */ public function lint() { $this->node->dochead = false; if (!empty($this->node->comments)) { foreach ($this->node->comments as $node) { if ($node->type === T_DOC_COMMENT) { $this->node->dochead = true; } $node->owner = $this->node->name; $lint = new LComment($node, $this->config); foreach ($lint->bind($this)->lint() as $_) { $this->reports[] = $_; } $this->penalty += $lint->penalty(); } } $this->recurse(); return $this->_lint(); }