We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
19 | public function build(AbstractSmrPlayer $player, Template $template): void { |
||
20 | $template->assign('PageTopic', 'Place Bounty'); |
||
21 | |||
22 | Menu::headquarters($this->locationID); |
||
23 | |||
24 | $container = new BountyPlaceProcessor($this->locationID); |
||
25 | $template->assign('SubmitHREF', $container->href()); |
||
26 | |||
27 | $bountyPlayers = []; |
||
28 | $db = Database::getInstance(); |
||
29 | $dbResult = $db->read('SELECT player_id, player_name FROM player JOIN account USING(account_id) WHERE game_id = ' . $db->escapeNumber($player->getGameID()) . ' AND account_id != ' . $db->escapeNumber($player->getAccountID()) . ' ORDER BY player_name'); |
||
30 | foreach ($dbResult->records() as $dbRecord) { |
||
31 | $bountyPlayers[$dbRecord->getInt('player_id')] = htmlentities($dbRecord->getString('player_name')); |
||
32 | } |
||
33 | $template->assign('BountyPlayers', $bountyPlayers); |
||
34 | } |
||
37 |