src/Parser/LocalPart.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 52-60 (lines=9) @@ | 
                                                            
                                    | 49 |  |                 } | 
                                                            
                                    | 50 |  |             } | 
                                                            
                                    | 51 |  |  | 
                                                            
                                    | 52 |  |             if ($this->lexer->token['type'] === EmailLexer::S_OPENPARENTHESIS ||  | 
                                                            
                                    | 53 |  |                 $this->lexer->token['type'] === EmailLexer::S_CLOSEPARENTHESIS ) { | 
                                                            
                                    | 54 |  |                 $commentsResult = $this->parseComments(); | 
                                                            
                                    | 55 |  |  | 
                                                            
                                    | 56 |  |                 //Invalid comment parsing | 
                                                            
                                    | 57 |  |                 if($commentsResult->isInvalid()) { | 
                                                            
                                    | 58 |  |                     return $commentsResult; | 
                                                            
                                    | 59 |  |                 } | 
                                                            
                                    | 60 |  |             } | 
                                                            
                                    | 61 |  |  | 
                                                            
                                    | 62 |  |             if ($this->lexer->token['type'] === EmailLexer::S_DOT && $this->lexer->isNextToken(EmailLexer::S_DOT)) { | 
                                                            
                                    | 63 |  |                 return new InvalidEmail(new ConsecutiveDot(), $this->lexer->token['value']); | 
                                                                        
                 
                                                            
                    
src/Parser/DomainPart.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 161-170 (lines=10) @@ | 
                                                            
                                    | 158 |  |                 return $notAllowedChars; | 
                                                            
                                    | 159 |  |             } | 
                                                            
                                    | 160 |  |  | 
                                                            
                                    | 161 |  |             if ($this->lexer->token['type'] === EmailLexer::S_OPENPARENTHESIS ||  | 
                                                            
                                    | 162 |  |                 $this->lexer->token['type'] === EmailLexer::S_CLOSEPARENTHESIS ) { | 
                                                            
                                    | 163 |  |                 $hasComments = true; | 
                                                            
                                    | 164 |  |                 $commentsResult = $this->parseComments(); | 
                                                            
                                    | 165 |  |  | 
                                                            
                                    | 166 |  |                 //Invalid comment parsing | 
                                                            
                                    | 167 |  |                 if($commentsResult->isInvalid()) { | 
                                                            
                                    | 168 |  |                     return $commentsResult; | 
                                                            
                                    | 169 |  |                 } | 
                                                            
                                    | 170 |  |             } | 
                                                            
                                    | 171 |  |  | 
                                                            
                                    | 172 |  |             $dotsResult = $this->checkConsecutiveDots(); | 
                                                            
                                    | 173 |  |             if ($dotsResult->isInvalid()) { |