From cf5908bb1abf18355e9b4961c0829e798be4915c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Reker=20=E2=9A=A1=EF=B8=8F?= Date: Wed, 13 Jul 2022 16:51:22 +0200 Subject: [PATCH] No superfluous elseif (#331) Replaces superfluous elseif with if. --- src/Parser/Comment.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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']); }