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::build()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 2
dl 0
loc 6
rs 10
c 0
b 0
f 0
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