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 — master ( 20c993...94c36f )
by Dan
23s queued 18s
created

ShipClass::getAllNames()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 2
rs 10
1
<?php declare(strict_types=1);
2
3
namespace Smr;
4
5
/**
6
 * Categorization of ship types.
7
 */
8
class ShipClass {
9
10
	const HUNTER = 1;
11
	const TRADER = 2;
12
	const RAIDER = 3;
13
	const SCOUT = 4;
14
	const STARTER = 5;
15
16
	const NAMES = [
17
		self::HUNTER => 'Hunter',
18
		self::TRADER => 'Trader',
19
		self::RAIDER => 'Raider',
20
		self::SCOUT => 'Scout',
21
		self::STARTER => 'Starter',
22
	];
23
24
	public static function getName(int $shipClassID) : string {
25
		return self::NAMES[$shipClassID];
26
	}
27
28
	public static function getAllNames() : array {
29
		return self::NAMES;
30
	}
31
32
}
33