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   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

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