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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A build() 0 9 1
A __construct() 0 3 1
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