protected function traverseVariableChain(Node $node) { $visitor = $this->traverser->getVisitor('Phint\\Visitors\\ChainVisitor'); if ($visitor) { return $visitor->visit($node); } }
public function check($path) { if (!defined('PHINT_DEBUG')) { define('PHINT_DEBUG', false); } if (!defined('PHINT_STRICT')) { define('PHINT_STRICT', false); } $this->errors->clear(); $code = file_get_contents($path); $nodes = $this->parser->parse($code); $this->context->setFileName($path); $this->traverser->traverse($nodes); }