Файловый менеджер - Редактировать - /home/avadvi5/calendar.aeronextgen.com/davis/vendor/doctrine/sql-formatter/src/Cursor.php
Ðазад
<?php declare(strict_types=1); namespace Doctrine\SqlFormatter; final class Cursor { private int $position = -1; /** @param list<Token> $tokens */ public function __construct( private readonly array $tokens, ) { } /** @param Token::TOKEN_TYPE_* $exceptTokenType */ public function next(int|null $exceptTokenType = null): Token|null { while ($token = $this->tokens[++$this->position] ?? null) { if ($exceptTokenType !== null && $token->isOfType($exceptTokenType)) { continue; } return $token; } return null; } /** @param Token::TOKEN_TYPE_* $exceptTokenType */ public function previous(int|null $exceptTokenType = null): Token|null { while ($token = $this->tokens[--$this->position] ?? null) { if ($exceptTokenType !== null && $token->isOfType($exceptTokenType)) { continue; } return $token; } return null; } public function subCursor(): self { $cursor = new self($this->tokens); $cursor->position = $this->position; return $cursor; } }
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка