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 ( 290674...0f9d71 )
by Marius
14:11 queued 07:19
created

Base   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
dl 0
loc 19
ccs 5
cts 10
cp 0.5
rs 10
c 0
b 0
f 0
wmc 5
lcom 0
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __get() 0 3 1
A __toString() 0 3 1
A __call() 0 9 3
1
<?php
2
/**
3
 * @package lib_infrastructure
4
 * @author marius orcsik <[email protected]>
5
 * @date 2010.03.30
6
 */
7
namespace vsc\infrastructure;
8
9
class Base extends BaseObject {
10 1
	public function __call($sMethodName, $aVars) {
11 1
		if (stristr($sMethodName, 'get')) {
12
			// we have a getter we return $this
13 1
			return new static();
14
		} elseif (!stristr($sMethodName, 'set')) {
15
			return parent::__call($sMethodName, $aVars);
16
		}
17
		return null;
18
	}
19
20 1
	public function __get($sVarName) {
21 1
		return new self();
22
	}
23
24
	public function __toString() {
25
		return '';
26
	}
27
}
28