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.

ClassMap::isValid()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 2

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * @package vsc\application\sitemaps
4
 * @author marius orcisk <[email protected]>
5
 * @date 2014.08.07
6
 */
7
namespace vsc\application\sitemaps;
8
9
use vsc\infrastructure\BaseObject as vscObject;
10
11
class ClassMap extends MappingA implements ContentTypeMappingInterface, ResourceMapInterface {
12
	use ProcessorMapTrait;
13
	use ControllerMapTrait;
14
	use ModuleMapTrait;
15
	use ResourceMapTrait;
16
17
	/**
18
	 * @param string $sPath
19
	 * @return bool
20
	 */
21 23
	public static function isValidMap($sPath) {
22 23
		return class_exists($sPath);
23
	}
24
25
	/**
26
	 * @param MappingA $oMap
27
	 * @return bool
28
	 */
29 21
	static public function isValid($oMap) {
30 21
		return (parent::isValid($oMap) && $oMap->getPath() !== '');
31
	}
32
33
	/**
34
	 * @param vscObject $mappedObject
35
	 * @return bool
36
	 */
37 2
	public function maps(vscObject $mappedObject)
38
	{
39 2
		return (get_class($mappedObject) == $this->getPath());
40
	}
41
}
42