Skip to content

Commit

Permalink
Apply fixes from StyleCI (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
silasary authored Jan 27, 2024
1 parent 64f8144 commit aa93906
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions gatherling/api_lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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();
Expand Down

0 comments on commit aa93906

Please sign in to comment.