Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Failed Conditions
Pull Request — main (#1494)
by Dan
08:06 queued 03:15
created

RaceKills   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 13
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 7 1
1
<?php declare(strict_types=1);
2
3
namespace Smr\Pages\Player\Rankings;
4
5
use AbstractSmrPlayer;
6
use Menu;
7
use Rankings;
8
use Smr\Page\PlayerPage;
9
use Smr\Page\ReusableTrait;
10
use Smr\Template;
11
12
class RaceKills extends PlayerPage {
13
14
	use ReusableTrait;
15
16
	public string $file = 'rankings_race_kills.php';
17
18
	public function build(AbstractSmrPlayer $player, Template $template): void {
19
		$template->assign('PageTopic', 'Racial Standings');
20
21
		Menu::rankings(2, 1);
22
23
		$rankedStats = Rankings::raceStats('kills', $player->getGameID());
24
		$template->assign('Ranks', Rankings::collectRaceRankings($rankedStats, $player));
25
	}
26
27
}
28