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

ArticleDeleteConfirm::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace Smr\Pages\Player\GalacticPost;
4
5
use AbstractSmrPlayer;
6
use Smr\Database;
7
use Smr\Page\PlayerPage;
8
use Smr\Template;
9
10
class ArticleDeleteConfirm extends PlayerPage {
11
12
	public string $file = 'galactic_post_delete_confirm.php';
13
14
	public function __construct(
15
		private readonly int $articleID
16
	) {}
17
18
	public function build(AbstractSmrPlayer $player, Template $template): void {
19
		$db = Database::getInstance();
20
21
		$template->assign('PageTopic', 'Delete Article - Confirm');
22
		$dbResult = $db->read('SELECT title FROM galactic_post_article WHERE article_id = ' . $db->escapeNumber($this->articleID) . ' AND game_id = ' . $db->escapeNumber($player->getGameID()));
23
		$template->assign('ArticleTitle', $dbResult->record()->getString('title'));
24
25
		$container = new ArticleDeleteProcessor($this->articleID);
26
		$template->assign('SubmitHREF', $container->href());
27
	}
28
29
}
30