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
Push — main ( 5797ad...3faf69 )
by Dan
29s queued 24s
created

AnnouncementCreate   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 13
rs 10
c 1
b 0
f 0
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A build() 0 5 2
A __construct() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Smr\Pages\Admin;
4
5
use Smr\Page\AccountPage;
6
use Smr\Template;
7
use SmrAccount;
8
9
class AnnouncementCreate extends AccountPage {
10
11
	public string $file = 'admin/announcement_create.php';
12
13
	public function __construct(
14
		private readonly ?string $preview = null
15
	) {}
16
17
	public function build(SmrAccount $account, Template $template): void {
18
		$template->assign('PageTopic', 'Create Announcement');
19
		$template->assign('AnnouncementCreateFormHref', (new AnnouncementCreateProcessor())->href());
20
		if ($this->preview !== null) {
21
			$template->assign('Preview', htmlentities($this->preview));
22
		}
23
	}
24
25
}
26