From aa9390649a3b3766923f6b337e9871f76a3e4c94 Mon Sep 17 00:00:00 2001 From: Katelyn Gigante Date: Sat, 27 Jan 2024 16:44:22 +1100 Subject: [PATCH] Apply fixes from StyleCI (#597) --- gatherling/api_lib.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gatherling/api_lib.php b/gatherling/api_lib.php index 559a57316..2cd3a8ad7 100644 --- a/gatherling/api_lib.php +++ b/gatherling/api_lib.php @@ -60,7 +60,7 @@ function auth() } if (is_null($username) || is_null($apikey)) { - return "Auth not provided"; + return 'Auth not provided'; } $player = Player::findByName($username); @@ -69,9 +69,8 @@ function auth() } if ($player->api_key == $apikey) { $_SESSION['username'] = $player->name; - } - else { - return "Invalid API Key"; + } else { + return 'Invalid API Key'; } return Player::isLoggedIn();