Beispiel #1
0
 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();
 }
Beispiel #2
0
    protected function scan()
    {
        if ($this->isScanned) {
            return;
        }

        $this->setTokens(token_get_all(file_get_contents($this->file)));
        parent::scan();
    }