Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed Aug 29, 2023
1 parent a885c72 commit 2a686c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Queries/Usage.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ public function __invoke(Interval $interval, string $type): Collection
'count' => (int) $row->count,
'user' => [
'name' => $user['name'],
'extra' => $user['extra'] ?? $user['email'],
'avatar' => $user['avatar'] ?? ($user['email'] ?? false) ? "https://unavatar.io/{$user['email']}?fallback=".rawurlencode("https://source.boringavatars.com/marble/120/{$user['email']}?colors=2f2bad,ad2bad,e42692,f71568,f7db15") : null,
'extra' => $user['extra'] ?? $user['email'] ?? '',

Check failure on line 64 in src/Queries/Usage.php

View workflow job for this annotation

GitHub Actions / Static Analysis

Offset 'email' on array{id: int|string, name: string, extra?: string|null} on left side of ?? does not exist.
'avatar' => $user['avatar'] ?? (($user['email'] ?? false) ? "https://unavatar.io/{$user['email']}?fallback=".rawurlencode("https://source.boringavatars.com/marble/120/{$user['email']}?colors=2f2bad,ad2bad,e42692,f71568,f7db15") : null),

Check failure on line 65 in src/Queries/Usage.php

View workflow job for this annotation

GitHub Actions / Static Analysis

Offset 'avatar' on array{id: int|string, name: string, extra?: string|null} on left side of ?? does not exist.

Check failure on line 65 in src/Queries/Usage.php

View workflow job for this annotation

GitHub Actions / Static Analysis

Offset 'email' on array{id: int|string, name: string, extra?: string|null} on left side of ?? does not exist.

Check failure on line 65 in src/Queries/Usage.php

View workflow job for this annotation

GitHub Actions / Static Analysis

Ternary operator condition is always false.
],
] : null;
})
Expand Down

0 comments on commit 2a686c4

Please sign in to comment.