protected function skipWhitespace(): void
    {
        while ($this->position < $this->bodyLength) {
            $code = $this->readCharCode($this->position);

            if (9 === $code || 32 === $code || 44 === $code || 0xfeff === $code) {
                // tab | space | comma | BOM
                ++$this->position;
            } elseif (10 === $code) {
                // new line (\n)
                ++$this->position;
                ++$this->line;
                $this->lineStart = $this->position;
            } elseif (13 === $code) {
                // carriage return (\r)
                if (10 === $this->readCharCode($this->position + 1)) {
                    // carriage return and new line (\r\n)
                    $this->position += 2;
                } else {
                    ++$this->position;
                }
                ++$this->line;
                $this->lineStart = $this->position;
            } else {
                break;
            }
        }
    }
protected function skipWhitespace(): void
    {
        while ($this->position < $this->bodyLength) {
            $code = $this->readCharCode($this->position);

            if (9 === $code || 32 === $code || 44 === $code || 0xfeff === $code) {
                // tab | space | comma | BOM
                ++$this->position;
            } elseif (10 === $code) {
                // new line (\n)
                ++$this->position;
                ++$this->line;
                $this->lineStart = $this->position;
            } elseif (13 === $code) {
                // carriage return (\r)
                if (10 === $this->readCharCode($this->position + 1)) {
                    // carriage return and new line (\r\n)
                    $this->position += 2;
                } else {
                    ++$this->position;
                }
                ++$this->line;
                $this->lineStart = $this->position;
            } else {
                break;
            }
        }
    }
protected function skipWhitespace ( ) : void { while ( $ this -> position < $ this -> bodyLength ) { $ code = $ this -> readCharCode ( $ this -> position ) ; if ( 9 === $ code || 32 === $ code || 44 === $ code || 0xfeff === $ code ) { // tab | space | comma | BOM ++ $ this -> position ; } elseif ( 10 === $ code ) { // new line (\n) ++ $ this -> position ; ++ $ this -> line ; $ this -> lineStart = $ this -> position ; } elseif ( 13 === $ code ) { // carriage return (\r) if ( 10 === $ this -> readCharCode ( $ this -> position + 1 ) ) { // carriage return and new line (\r\n) $ this -> position += 2 ; } else { ++ $ this -> position ; } ++ $ this -> line ; $ this -> lineStart = $ this -> position ; } else { break ; } } }
Skips whitespace at the current position.
Skips whitespace at the current position .