Completed
Push — master ( d4e951...14a860 )
by Jean-Christophe
04:01
created

Display   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 10
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A semanticMenu() 0 8 2
1
<?php
2
3
namespace Ubiquity\core\postinstall;
4
5
use Ubiquity\core\Framework;
6
7
class Display {
8
9 2
	public static function semanticMenu($id, $semantic) {
10 2
		$menu=$semantic->htmlMenu($id, [ "Ubiquity website","Guide","Doc API","GitHub" ]);
11 2
		$menu->asLinks([ "https://ubiquity.kobject.net","https://micro-framework.readthedocs.io/en/latest/?badge=latest","https://api.kobject.net/ubiquity/","https://github.com/phpMv/ubiquity" ], 'new');
12 2
		$menu->setSecondary();
13 2
		if (Framework::hasAdmin()) {
14 2
			$menu->addItem(new \Ajax\semantic\html\elements\html5\HtmlLink("", "Admin", "UbiquityMyAdmin", "admin"));
15
		}
16 2
		return $menu;
17
	}
18
}
19
20