original_string: public function getNext()
      {
          if ($this->peeking) {
              $this->peeking = false;
              $this->used[] = $this->peeked;
  
              return $this->peeked;
          }
  
          if (!isset($this->tokens[$this->cursor])) {
              throw new InternalErrorException('Unexpected token stream end.');
          }
  
          return $this->tokens[$this->cursor++];
      }
code: public function getNext()
      {
          if ($this->peeking) {
              $this->peeking = false;
              $this->used[] = $this->peeked;
  
              return $this->peeked;
          }
  
          if (!isset($this->tokens[$this->cursor])) {
              throw new InternalErrorException('Unexpected token stream end.');
          }
  
          return $this->tokens[$this->cursor++];
      }
code_tokens: public function getNext ( ) { if ( $ this -> peeking ) { $ this -> peeking = false ; $ this -> used [ ] = $ this -> peeked ; return $ this -> peeked ; } if ( ! isset ( $ this -> tokens [ $ this -> cursor ] ) ) { throw new InternalErrorException ( 'Unexpected token stream end.' ) ; } return $ this -> tokens [ $ this -> cursor ++ ] ; }
docstring: Returns next token.
  
  @return Token
  
  @throws InternalErrorException If there is no more token
docstring_tokens: Returns next token .