src/Jit/TokenStream.php
public function current($token = false)
    {
        if (!$this->valid()) {
            return null;
        }
        return $token ? $this->_data[$this->_current] : $this->_data[$this->_current][1];
    }
public function current($token = false)
    {
        if (!$this->valid()) {
            return null;
        }
        return $token ? $this->_data[$this->_current] : $this->_data[$this->_current][1];
    }
public function current ( $ token = false ) { if ( ! $ this -> valid ( ) ) { return null ; } return $ token ? $ this -> _data [ $ this -> _current ] : $ this -> _data [ $ this -> _current ] [ 1 ] ; }
Returns the current token or the token value.

@param  boolean      If `true` returns the token array. Returns the token value otherwise.
@return array|string
Returns the current token or the token value .