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

ModuleMapTrait   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 37
ccs 12
cts 12
cp 1
rs 10
c 0
b 0
f 0
wmc 6
lcom 1
cbo 2

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setModuleMap() 0 3 1
A getModuleMap() 0 6 2
A getModulePath() 0 4 1
A getModuleName() 0 3 2
1
<?php
2
/**
3
 * @package application
4
 * @subpackage sitemaps
5
 * @author marius orcisk <[email protected]>
6
 * @date 17.01.25
7
 */
8
namespace vsc\application\sitemaps;
9
10
11
trait ModuleMapTrait
12
{
13
	/**
14
	 * @var MappingA
15
	 */
16
	private $oParentMap;
17
18 19
	public function setModuleMap(MappingA $oMap) {
19 19
		$this->oParentMap = $oMap;
20 19
	}
21
22
	/**
23
	 * @returns ModuleMap
24
	 */
25 21
	public function getModuleMap() {
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...
26 21
		if (!MappingA::isValid($this->oParentMap)) {
27 20
			$this->oParentMap = new RootMap(VSC_RES_PATH . 'config/map.php');
28
		}
29 21
		return $this->oParentMap;
30
	}
31
32
	/**
33
	 * @return string
34
	 * @throws ExceptionSitemap
35
	 */
36 2
	public function getModulePath() {
37 2
		$oModuleMap = $this->getModuleMap();
38 2
		return $oModuleMap->getModulePath();
39
	}
40
41
	/**
42
	 * @return string
0 ignored issues
show
Documentation introduced by
Should the return type not be string|null?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
43
	 */
44 1
	public function getModuleName() {
45 1
		return $this->getModulePath() ? basename($this->getModulePath()) : null;
46
	}
47
}
48