We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 18 | public function build(AbstractSmrPlayer $player, Template $template): void { |
||
| 19 | $template->assign('PageTopic', 'Experience Rankings'); |
||
| 20 | |||
| 21 | Menu::rankings(0, 0); |
||
| 22 | |||
| 23 | $rankedStats = Rankings::playerStats('experience', $player->getGameID()); |
||
| 24 | |||
| 25 | // what rank are we? |
||
| 26 | $ourRank = Rankings::ourRank($rankedStats, $player->getPlayerID()); |
||
| 27 | $template->assign('OurRank', $ourRank); |
||
| 28 | |||
| 29 | $template->assign('Rankings', Rankings::collectRankings($rankedStats, $player)); |
||
| 30 | |||
| 31 | $totalPlayers = count($rankedStats); |
||
| 32 | [$minRank, $maxRank] = Rankings::calculateMinMaxRanks($ourRank, $totalPlayers); |
||
| 33 | |||
| 34 | $template->assign('FilterRankingsHREF', (new self())->href()); |
||
| 35 | |||
| 36 | $template->assign('FilteredRankings', Rankings::collectRankings($rankedStats, $player, $minRank, $maxRank)); |
||
| 37 | } |
||
| 40 |