public function analyze(File $file) { if (!$file instanceof PhpFile) { return; } NodeTraversal::traverseWithCallback($file->getAst(), $this); }
public function analyze(File $file) { if (!$file instanceof PhpFile) { return; } $this->file = $file; NodeTraversal::traverseWithCallback($file->getAst(), $this, $this->scopeCreator); }
public final function analyze(File $file) { if (!$file instanceof PhpFile) { return; } $this->phpFile = $file; $this->stream->setInput($file->getContent(), $file->getAst()); $this->analyzeStream(); }
public function analyze(File $file) { if (!$file instanceof PhpFile) { return; } if (!$this->getSetting('enabled')) { return; } $this->file = $file; NodeTraversal::traverseWithCallback($file->getAst(), $this); }