src/Parser/LocalPart.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 51-59 (lines=9) @@ | 
                                                            
                                    | 48 |  |                 } | 
                                                            
                                    | 49 |  |             } | 
                                                            
                                    | 50 |  |  | 
                                                            
                                    | 51 |  |             if ($this->lexer->token['type'] === EmailLexer::S_OPENPARENTHESIS ||  | 
                                                            
                                    | 52 |  |                 $this->lexer->token['type'] === EmailLexer::S_CLOSEPARENTHESIS ) { | 
                                                            
                                    | 53 |  |                 $commentsResult = $this->parseComments(); | 
                                                            
                                    | 54 |  |  | 
                                                            
                                    | 55 |  |                 //Invalid comment parsing | 
                                                            
                                    | 56 |  |                 if($commentsResult->isInvalid()) { | 
                                                            
                                    | 57 |  |                     return $commentsResult; | 
                                                            
                                    | 58 |  |                 } | 
                                                            
                                    | 59 |  |             } | 
                                                            
                                    | 60 |  |  | 
                                                            
                                    | 61 |  |             if ($this->lexer->token['type'] === EmailLexer::S_DOT && $this->lexer->isNextToken(EmailLexer::S_DOT)) { | 
                                                            
                                    | 62 |  |                 return new InvalidEmail(new ConsecutiveDot(), $this->lexer->token['value']); | 
                                                                        
                 
                                                            
                    
src/Parser/DomainPart.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 150-158 (lines=9) @@ | 
                                                            
                                    | 147 |  |                 return $notAllowedChars; | 
                                                            
                                    | 148 |  |             } | 
                                                            
                                    | 149 |  |  | 
                                                            
                                    | 150 |  |             if ($this->lexer->token['type'] === EmailLexer::S_OPENPARENTHESIS ||  | 
                                                            
                                    | 151 |  |                 $this->lexer->token['type'] === EmailLexer::S_CLOSEPARENTHESIS ) { | 
                                                            
                                    | 152 |  |                 $commentsResult = $this->parseComments(); | 
                                                            
                                    | 153 |  |  | 
                                                            
                                    | 154 |  |                 //Invalid comment parsing | 
                                                            
                                    | 155 |  |                 if($commentsResult->isInvalid()) { | 
                                                            
                                    | 156 |  |                     return $commentsResult; | 
                                                            
                                    | 157 |  |                 } | 
                                                            
                                    | 158 |  |             } | 
                                                            
                                    | 159 |  |  | 
                                                            
                                    | 160 |  |             $dotsResult = $this->checkConsecutiveDots(); | 
                                                            
                                    | 161 |  |             if ($dotsResult->isInvalid()) { |