Skip to content

Commit

Permalink
No superfluous elseif (#331)
Browse files Browse the repository at this point in the history
Replaces superfluous elseif with if.
  • Loading branch information
MathiasReker authored Jul 13, 2022
1 parent b241b54 commit cf5908b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Parser/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}

Expand Down

0 comments on commit cf5908b

Please sign in to comment.