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.

Nip_Object   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
dl 0
loc 29
ccs 8
cts 12
cp 0.6667
rs 10
c 0
b 0
f 0
wmc 5
lcom 0
cbo 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __get() 0 7 2
A __set() 0 4 1
A __isset() 0 4 1
A __unset() 0 4 1
1
<?php
2
3
class Nip_Object
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
4
{
5
6
	protected $_data;
7
8 1
	public function &__get($name)
9
	{
10 1
		if (!$this->__isset($name)) {
11
			$this->_data[$name] = null;
12
		}
13 1
		return $this->_data[$name];
14
	}
15
16 2
	public function __set($name, $value)
17
	{
18 2
		$this->_data[$name] = $value;
19 2
	}
20
21 1
	public function __isset($name)
22
	{
23 1
		return isset($this->_data[$name]);
24
	}
25
26
	public function __unset($name)
27
	{
28
		unset($this->_data[$name]);
29
	}
30
31
}