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::__call()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 4.125

Importance

Changes 0
Metric Value
cc 3
eloc 6
nc 3
nop 2
dl 0
loc 9
ccs 3
cts 6
cp 0.5
crap 4.125
rs 9.6666
c 0
b 0
f 0
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