protected function scan() { if (!$this->file) { throw new Exception\RuntimeException('File was not provided'); } $this->setTokens(token_get_all(file_get_contents($this->file))); parent::scan(); }
protected function scan() { if ($this->isScanned) { return; } $this->setTokens(token_get_all(file_get_contents($this->file))); parent::scan(); }