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

SetShipProcessor::buildBetaFunctionsProcessor()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 3
eloc 7
c 1
b 0
f 0
nc 2
nop 1
dl 0
loc 9
rs 10
1
<?php declare(strict_types=1);
2
3
namespace Smr\Pages\Player\BetaFunctions;
4
5
use AbstractSmrPlayer;
6
use Smr\Request;
7
8
class SetShipProcessor extends BetaFunctionsPageProcessor {
9
10
	public function buildBetaFunctionsProcessor(AbstractSmrPlayer $player): void {
11
		$ship = $player->getShip();
12
		$shipTypeID = Request::getInt('ship_type_id');
13
		if ($shipTypeID <= 75 && $shipTypeID != 68) {
14
			// assign the new ship
15
			$ship->decloak();
16
			$ship->disableIllusion();
17
			$ship->setTypeID($shipTypeID);
18
			$ship->setHardwareToMax();
19
		}
20
	}
21
22
}
23