We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 3 |
Paths | 3 |
Total Lines | 20 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
18 | public function build(AbstractSmrPlayer $player, Template $template): void { |
||
19 | $template->assign('PageTopic', 'Bounties'); |
||
20 | |||
21 | Menu::trader(); |
||
22 | |||
23 | foreach (BountyType::cases() as $type) { |
||
24 | if ($player->hasCurrentBounty($type)) { |
||
25 | $bounty = $player->getCurrentBounty($type); |
||
26 | $msg = number_format($bounty['Amount']) . ' credits and ' . number_format($bounty['SmrCredits']) . ' SMR credits'; |
||
27 | } else { |
||
28 | $msg = 'None'; |
||
29 | } |
||
30 | $template->assign('Bounty' . $type->value, $msg); |
||
31 | } |
||
32 | |||
33 | $allClaims = [ |
||
34 | $player->getClaimableBounties(BountyType::HQ), |
||
35 | $player->getClaimableBounties(BountyType::UG), |
||
36 | ]; |
||
37 | $template->assign('AllClaims', $allClaims); |
||
38 | } |
||
41 |