No superfluous elseif (#331)

Replaces superfluous elseif with if.
This commit is contained in:
Mathias Reker ⚡️
2022-07-13 16:51:22 +02:00
committed by GitHub
parent b241b54919
commit cf5908bb1a
+2 -1
View File
@@ -59,7 +59,8 @@ class Comment extends PartParser
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']);
}