Inheritance: extends BaseLint, implements phplinter\Lint\ILint
Example #1
0
 /**
 ----------------------------------------------------------------------+
 * 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();
 }