Skip to content

Commit

Permalink
lol thats not javascript thats PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
xxAROX committed Jul 2, 2024
1 parent 6e06417 commit b288cc9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/xxAROX/PresenceMan/PresenceMan.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,8 @@ public static function getHeadURL(string $xuid, bool $gray = false, ?int $size =
$gateway_url = Gateway::getUrl();
$size = $size == null ? null : max(self::HEAD_SIZE_MAX, min(self::HEAD_SIZE_MIN, $size));
$url = ApiRequest::$URI_GET_HEAD . $xuid;
if ($size != null) $url = "{$url}?size={$size}";
/** @phpstan-ignore */
if ($gray) $url += $size != null ? "&gray" : "?gray";
if ($size != null) $url .= "?size=" . $size;
if ($gray) $url .= ($size != null ? "&gray" : "?gray");
return $gateway_url . $url;
} catch (\LogicException $e) {
return null;
Expand Down

0 comments on commit b288cc9

Please sign in to comment.