src/Parser/LocalPart.php 2 locations
                
                
                    
                                                
                                                    
                                |  | @@ 49-53 (lines=5) @@ | 
                                                            
                                    | 46 |  |  | 
                                                            
                                    | 47 |  |             $this->checkConsecutiveDots(); | 
                                                            
                                    | 48 |  |  | 
                                                            
                                    | 49 |  |             if ($this->lexer->token['type'] === EmailLexer::S_DOT && | 
                                                            
                                    | 50 |  |                 $this->lexer->isNextToken(EmailLexer::S_AT) | 
                                                            
                                    | 51 |  |             ) { | 
                                                            
                                    | 52 |  |                 throw new DotAtEnd(); | 
                                                            
                                    | 53 |  |             } | 
                                                            
                                    | 54 |  |  | 
                                                            
                                    | 55 |  |             $this->warnEscaping(); | 
                                                            
                                    | 56 |  |             $this->isInvalidToken($this->lexer->token, $closingQuote); | 
                                                                                
                                |  | @@ 99-101 (lines=3) @@ | 
                                                            
                                    | 96 |  |                 $this->warnings[CFWSWithFWS::CODE] = new CFWSWithFWS(); | 
                                                            
                                    | 97 |  |                 $setSpecialsWarning = false; | 
                                                            
                                    | 98 |  |             } | 
                                                            
                                    | 99 |  |             if ($this->lexer->token['type'] === EmailLexer::S_BACKSLASH && $this->lexer->isNextToken(EmailLexer::S_DQUOTE)) { | 
                                                            
                                    | 100 |  |                 $this->lexer->moveNext(); | 
                                                            
                                    | 101 |  |             } | 
                                                            
                                    | 102 |  |  | 
                                                            
                                    | 103 |  |             $this->lexer->moveNext(); | 
                                                            
                                    | 104 |  |  | 
                                                                        
                 
                                                            
                    
src/Parser/Parser.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 140-142 (lines=3) @@ | 
                                                            
                                    | 137 |  |  | 
                                                            
                                    | 138 |  |     protected function checkConsecutiveDots() | 
                                                            
                                    | 139 |  |     { | 
                                                            
                                    | 140 |  |         if ($this->lexer->token['type'] === EmailLexer::S_DOT && $this->lexer->isNextToken(EmailLexer::S_DOT)) { | 
                                                            
                                    | 141 |  |             throw new ConsecutiveDot(); | 
                                                            
                                    | 142 |  |         } | 
                                                            
                                    | 143 |  |     } | 
                                                            
                                    | 144 |  |  | 
                                                            
                                    | 145 |  |     /** | 
                                                                        
                 
                                                            
                    
src/Parser/DomainPart.php 2 locations
                
                
                    
                                                
                                                    
                                |  | @@ 370-372 (lines=3) @@ | 
                                                            
                                    | 367 |  |             throw new ExpectingATEXT(); | 
                                                            
                                    | 368 |  |         } | 
                                                            
                                    | 369 |  |  | 
                                                            
                                    | 370 |  |         if ($this->lexer->token['type'] === EmailLexer::S_HYPHEN && $this->lexer->isNextToken(EmailLexer::S_DOT)) { | 
                                                            
                                    | 371 |  |             throw new DomainHyphened(); | 
                                                            
                                    | 372 |  |         } | 
                                                            
                                    | 373 |  |  | 
                                                            
                                    | 374 |  |         if ($this->lexer->token['type'] === EmailLexer::S_BACKSLASH | 
                                                            
                                    | 375 |  |             && $this->lexer->isNextToken(EmailLexer::GENERIC)) { | 
                                                                                
                                |  | @@ 374-377 (lines=4) @@ | 
                                                            
                                    | 371 |  |             throw new DomainHyphened(); | 
                                                            
                                    | 372 |  |         } | 
                                                            
                                    | 373 |  |  | 
                                                            
                                    | 374 |  |         if ($this->lexer->token['type'] === EmailLexer::S_BACKSLASH | 
                                                            
                                    | 375 |  |             && $this->lexer->isNextToken(EmailLexer::GENERIC)) { | 
                                                            
                                    | 376 |  |             throw new ExpectingATEXT(); | 
                                                            
                                    | 377 |  |         } | 
                                                            
                                    | 378 |  |     } | 
                                                            
                                    | 379 |  |  | 
                                                            
                                    | 380 |  |     /** |