protected function onMatchFound($start, TokenArrayIteratorInterface $tai) { if (true === $this->nestedMode) { $tai->seek($start); $tai->next(); } }
/** * Skips whitespaces and positions the cursor AFTER the last whitespace. * */ public static function skipWhiteSpaces(TokenArrayIteratorInterface $tai) { $cur = $tai->current(); while (is_array($cur) && T_WHITESPACE === $cur[0]) { $tai->next(); $cur = $tai->current(); } }