protected function advanceToNextToken(Iterator $tokens, $isStartToken)
    {
        if (($isStartToken) || ($tokens->valid() && !$this->isEndToken($tokens->current()))) {
            $tokens->next();
        }
    }
protected function advanceToNextToken(Iterator $tokens, $isStartToken)
    {
        if (($isStartToken) || ($tokens->valid() && !$this->isEndToken($tokens->current()))) {
            $tokens->next();
        }
    }
protected function advanceToNextToken ( Iterator $ tokens , $ isStartToken ) { if ( ( $ isStartToken ) || ( $ tokens -> valid ( ) && ! $ this -> isEndToken ( $ tokens -> current ( ) ) ) ) { $ tokens -> next ( ) ; } }
Determines if the iterator should be advanced to the next token after
reading tokens or finding a start token.

The default implementation will advance for a start token, but not
advance on the end token of the current consumer, allowing the end token
to be passed up to a higher-level consumer.

@param Iterator $tokens
@param bool $isStartToken
Determines if the iterator should be advanced to the next token after reading tokens or finding a start token .