Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TokenIterator.php

function TokenIterator::getSkippedHorizontalWhiteSpaceIfAny

File

vendor/phpstan/phpdoc-parser/src/Parser/TokenIterator.php, line 221

Class

TokenIterator

Namespace

PHPStan\PhpDocParser\Parser

Code

public function getSkippedHorizontalWhiteSpaceIfAny() : string {
    if ($this->index > 0 && $this->tokens[$this->index - 1][Lexer::TYPE_OFFSET] === Lexer::TOKEN_HORIZONTAL_WS) {
        return $this->tokens[$this->index - 1][Lexer::VALUE_OFFSET];
    }
    return '';
}
RSS feed
Powered by Drupal