Skip to content

Commit

Permalink
refactor: use elseif
Browse files Browse the repository at this point in the history
  • Loading branch information
victormendoza96 committed Aug 28, 2024
1 parent c7e91b4 commit 86399f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/OneclickMallController.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function finishInscription(Request $request)
$view = 'oneclick-mall.rejected';
$data = ["resp" => $resp, "token" => $token];
return view('oneclick-mall.rejected', ["resp" => $resp, "token" => $token]);
} else if ($resp->responseCode == self::TIMEOUT) {
} elseif ($resp->responseCode == self::TIMEOUT) {
$view = 'oneclick-mall.timeout';
$data = ["resp" => $resp];
return view('oneclick-mall.timeout', ["resp" => $resp]);
Expand Down

0 comments on commit 86399f8

Please sign in to comment.