public function skipToNextNonWhitespace($direction = self::DIR_FORWARD)
    {
        return $this->safeMove(function () use ($direction) {
            $this->moveWithCondition(function () {
                return $this->current()->getType() !== T_WHITESPACE;
            }, $direction);

            return $this;
        })->next();
    }
public function skipToNextNonWhitespace($direction = self::DIR_FORWARD)
    {
        return $this->safeMove(function () use ($direction) {
            $this->moveWithCondition(function () {
                return $this->current()->getType() !== T_WHITESPACE;
            }, $direction);

            return $this;
        })->next();
    }
public function skipToNextNonWhitespace ( $ direction = self :: DIR_FORWARD ) { return $ this -> safeMove ( function ( ) use ( $ direction ) { $ this -> moveWithCondition ( function ( ) { return $ this -> current ( ) -> getType ( ) !== T_WHITESPACE ; } , $ direction ) ; return $ this ; } ) -> next ( ) ; }
Skips to the next non-whitespace token.

@param int $direction

@return mixed
Skips to the next non - whitespace token .