diff --git a/src/Parser/Comment.php b/src/Parser/Comment.php index ffa6128..284f1e8 100644 --- a/src/Parser/Comment.php +++ b/src/Parser/Comment.php @@ -59,7 +59,8 @@ public function parse() : Result if($this->openedParenthesis >= 1) { return new InvalidEmail(new UnclosedComment(), $this->lexer->token['value']); - } else if ($this->openedParenthesis < 0) { + } + if ($this->openedParenthesis < 0) { return new InvalidEmail(new UnOpenedComment(), $this->lexer->token['value']); }