REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.05 KB
Close
//opt/cpanel/ea-wappspector/vendor/rector/rector/src/BetterPhpDocParser/PhpDocInfo/TokenIteratorFactory.php
Text
Base64
<?php declare (strict_types=1); namespace Rector\BetterPhpDocParser\PhpDocInfo; use PHPStan\PhpDocParser\Lexer\Lexer; use PHPStan\PhpDocParser\Parser\TokenIterator; use Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator; final class TokenIteratorFactory { /** * @readonly * @var \PHPStan\PhpDocParser\Lexer\Lexer */ private $lexer; public function __construct(Lexer $lexer) { $this->lexer = $lexer; } public function create(string $content) : BetterTokenIterator { $tokens = $this->lexer->tokenize($content); return new BetterTokenIterator($tokens); } public function createFromTokenIterator(TokenIterator $tokenIterator) : BetterTokenIterator { if ($tokenIterator instanceof BetterTokenIterator) { return $tokenIterator; } // keep original tokens and index position $tokens = $tokenIterator->getTokens(); $currentIndex = $tokenIterator->currentTokenIndex(); return new BetterTokenIterator($tokens, $currentIndex); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
PhpDocInfo.php
16.59 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PhpDocInfoFactory.php
5.23 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
TokenIteratorFactory.php
1.05 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).