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.

ExceptionResponseRedirect   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 17
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getRedirectCode() 0 3 1
A getLocation() 0 3 1
1
<?php
2
namespace vsc\presentation\responses;
3
4
class ExceptionResponseRedirect extends ExceptionResponse {
5
	private $sLocation;
6
	private $iHttpRedirectCode;
7
8 1
	public function __construct($sLocation, $iCode = 302) {
9 1
		$this->iHttpRedirectCode = $iCode;
10 1
		$this->sLocation = $sLocation;
11 1
	}
12
13 22
	public function getRedirectCode() {
14 22
		return $this->iHttpRedirectCode;
15
	}
16
17 1
	public function getLocation() {
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...
18 1
		return $this->sLocation;
19
	}
20
}
21