Helper   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDomainWithoutExt() 0 8 2
1
<?php
2
3
namespace OCA\Bookmarks\Controller\Lib;
4
5
class Helper {
6
7
	static function getDomainWithoutExt($name) {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
8
		$pos = strripos($name, '.');
9
		if ($pos === false) {
10
			return $name;
11
		} else {
12
			return substr($name, 0, $pos);
13
		}
14
	}
15
16
}
17