Explorer
home
/
zoteqbgb
/
public_html
/
vendor
/
egulias
/
email-validator
/
src
/
Parser
/
CommentStrategy
Location:
/home/zoteqbgb/public_html/vendor/egulias/email-validator/src/Parser/CommentStrategy
Root path:
/home/zoteqbgb/public_html/config/676626
Editing: LocalComment.php
<?php namespace Egulias\EmailValidator\Parser\CommentStrategy; use Egulias\EmailValidator\EmailLexer; use Egulias\EmailValidator\Result\Result; use Egulias\EmailValidator\Result\ValidEmail; use Egulias\EmailValidator\Warning\CFWSNearAt; use Egulias\EmailValidator\Result\InvalidEmail; use Egulias\EmailValidator\Result\Reason\ExpectingATEXT; use Egulias\EmailValidator\Warning\Warning; class LocalComment implements CommentStrategy { /** * @var array<int, Warning> */ private $warnings = []; public function exitCondition(EmailLexer $lexer, int $openedParenthesis): bool { return !$lexer->isNextToken(EmailLexer::S_AT); } public function endOfLoopValidations(EmailLexer $lexer): Result { if (!$lexer->isNextToken(EmailLexer::S_AT)) { return new InvalidEmail(new ExpectingATEXT('ATEX is not expected after closing comments'), $lexer->current->value); } $this->warnings[CFWSNearAt::CODE] = new CFWSNearAt(); return new ValidEmail(); } public function getWarnings(): array { return $this->warnings; } }
Save maftirs
Upload
Start Upload
New File
Create File
New Folder
Create Folder
Directory Contents
Name
Size
Perms
Modified
Actions
CommentStrategy.php
525 bytes
0644
2024-12-27 05:36
âï¸
ðï¸
Rename
DomainComment.php
1,050 bytes
0644
2024-12-27 05:36
âï¸
ðï¸
Rename
LocalComment.php
1,120 bytes
0644
2024-12-27 05:36
âï¸
ðï¸
Rename
Chang
Apply