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 (#1498)
by Dan
04:47
created

SetAlignmentProcessor   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A buildBetaFunctionsProcessor() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Smr\Pages\Player\BetaFunctions;
4
5
use AbstractSmrPlayer;
6
use Smr\Request;
7
8
class SetAlignmentProcessor extends BetaFunctionsPageProcessor {
9
10
	public function buildBetaFunctionsProcessor(AbstractSmrPlayer $player): void {
11
		$align = max(-500, min(500, Request::getInt('align')));
12
		$player->setAlignment($align);
13
	}
14
15
}
16