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
10:59 queued 05:29
created

NewbieLeave   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 12
rs 10
c 1
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 6 2
1
<?php declare(strict_types=1);
2
3
namespace Smr\Pages\Player;
4
5
use AbstractSmrPlayer;
6
use Smr\Page\PlayerPage;
7
use Smr\Page\ReusableTrait;
8
use Smr\Template;
9
10
class NewbieLeave extends PlayerPage {
11
12
	use ReusableTrait;
13
14
	public string $file = 'leave_newbie.php';
15
16
	public function build(AbstractSmrPlayer $player, Template $template): void {
17
		if (!$player->getGame()->hasStarted()) {
18
			create_error('You cannot leave newbie protection before the game begins!');
19
		}
20
21
		$template->assign('PageTopic', 'Leave Newbie Protection');
22
	}
23
24
}
25