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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 12 2
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