Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 150
Zeile 14... Zeile 14...
14
    /**
14
    /**
15
     * @var array
15
     * @var array
16
     */
16
     */
17
    private $warnings = [];
17
    private $warnings = [];
Zeile 18... Zeile 18...
18
 
18
 
19
    public function exitCondition(EmailLexer $lexer, int $openedParenthesis) : bool
19
    public function exitCondition(EmailLexer $lexer, int $openedParenthesis): bool
20
    {
20
    {
21
        return !$lexer->isNextToken(EmailLexer::S_AT);
21
        return !$lexer->isNextToken(EmailLexer::S_AT);
Zeile 22... Zeile 22...
22
    }
22
    }
23
 
23
 
24
    public function endOfLoopValidations(EmailLexer $lexer) : Result
24
    public function endOfLoopValidations(EmailLexer $lexer): Result
25
    {
25
    {
26
        if (!$lexer->isNextToken(EmailLexer::S_AT)) {
26
        if (!$lexer->isNextToken(EmailLexer::S_AT)) {
27
            return new InvalidEmail(new ExpectingATEXT('ATEX is not expected after closing comments'), $lexer->token['value']);
27
            return new InvalidEmail(new ExpectingATEXT('ATEX is not expected after closing comments'), $lexer->current->value);
28
        }
28
        }
29
        $this->warnings[CFWSNearAt::CODE] = new CFWSNearAt();
29
        $this->warnings[CFWSNearAt::CODE] = new CFWSNearAt();