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

PersonalBank::build()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 6
nc 2
nop 2
dl 0
loc 12
rs 10
c 1
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace Smr\Pages\Player\Bank;
4
5
use AbstractSmrPlayer;
6
use Menu;
7
use Smr\Page\PlayerPage;
8
use Smr\Template;
9
10
class PersonalBank extends PlayerPage {
11
12
	public string $file = 'bank_personal.php';
13
14
	public function build(AbstractSmrPlayer $player, Template $template): void {
15
		// is account validated?
16
		if (!$player->getAccount()->isValidated()) {
17
			create_error('You are not validated so you cannot use banks.');
18
		}
19
20
		$template->assign('PageTopic', 'Bank');
21
22
		Menu::bank();
23
24
		$container = new PersonalBankProcessor();
25
		$template->assign('ProcessingHREF', $container->href());
26
	}
27
28
}
29