Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
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 | } |
||
20 |