GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 63bf77...7c1678 )
by Marius
05:51
created

ExceptionError::getSeverityString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
namespace vsc;
3
4
class ExceptionError extends \ErrorException {
5
	private $aErrorTypes = [
6
		E_ERROR					=> 'E_ERROR',
7
		E_WARNING				=> 'E_WARNING',
8
		E_PARSE					=> 'E_PARSE',
9
		E_NOTICE				=> 'E_NOTICE',
10
		E_CORE_ERROR			=> 'E_CORE_ERROR',
11
		E_CORE_WARNING			=> 'E_CORE_WARNING',
12
		E_COMPILE_ERROR			=> 'E_COMPILE_ERROR',
13
		E_COMPILE_WARNING		=> 'E_COMPILE_WARNING',
14
		E_USER_ERROR			=> 'E_USER_ERROR',
15
		E_USER_WARNING			=> 'E_USER_WARNING',
16
		E_USER_NOTICE			=> 'E_USER_NOTICE',
17
		E_STRICT				=> 'E_STRICT',
18
		E_RECOVERABLE_ERROR		=> 'E_RECOVERABLE_ERROR',
19
		E_DEPRECATED			=> 'E_DEPRECATED',
20
		E_USER_DEPRECATED		=> 'E_USER_DEPRECATED',
21
		E_ALL					=> 'E_ALL',
22
	];
23
24 1
	public function getSeverityString() {
0 ignored issues
show
Documentation introduced by
The return type could not be reliably inferred; please add a @return annotation.

Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a @return annotation as described here.

Loading history...
25 1
		return $this->aErrorTypes[$this->getSeverity()];
26
	}
27
28 2
	public static function isValid($e) {
29 2
		return ($e instanceof static);
30
	}
31
}
32