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

SectorsFileDownloadProcessor::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 6
rs 10
c 1
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace Smr\Pages\Player;
4
5
use AbstractSmrPlayer;
6
use Smr\Page\PlayerPageProcessor;
7
use Smr\Page\ReusableTrait;
8
use Smr\SectorLock;
9
use Smr\SectorsFile;
10
11
class SectorsFileDownloadProcessor extends PlayerPageProcessor {
12
13
	use ReusableTrait;
14
15
	public function build(AbstractSmrPlayer $player): never {
16
		// We can release the sector lock now because we know that the following
17
		// code is read-only. This will help reduce sector lag and possible abuse.
18
		SectorLock::getInstance()->release();
19
20
		SectorsFile::create($player->getGameID(), $player);
21
	}
22
23
}
24