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 ( 7b42e1...c93f43 )
by Marius
10:41 queued 04:09
created

AuthenticatedRequestTrait::hasAuthenticationData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * @package presentation
4
 * @subpackage requests
5
 * @author marius orcsik <[email protected]>
6
 * @date 21.02.15
7
 */
8
namespace vsc\presentation\requests;
9
10
11
trait AuthenticatedRequestTrait {
12
	protected $oAuth;
13
14
	/**
15
	 * @return bool
16
	 */
17
	public function hasAuthenticationData() {
18
		return HttpAuthenticationA::isValid($this->oAuth);
19
	}
20
21
	/**
22
	 * @returns HttpAuthenticationA
23
	 */
24
	public function getAuthentication() {
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
		return $this->oAuth;
26
	}
27
28
	/**
29
	 * @param HttpAuthenticationA $oHttpAuthentication
30
	 */
31
	protected function setAuthentication(HttpAuthenticationA $oHttpAuthentication) {
32
		$this->oAuth = $oHttpAuthentication;
33
	}
34
}
35