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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 28
ccs 4
cts 4
cp 1
rs 10
c 1
b 0
f 0
wmc 2
lcom 1
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSeverityString() 0 3 1
A isValid() 0 3 1
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