Passed
Push — master ( 1ad852...df2cff )
by Tim
07:55
created

memcacheMonitor_hook_frontpage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 2
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
1
<?php
2
3
use Webmozart\Assert\Assert;
4
5
/**
6
 * Hook to add the simple consenet admin module to the frontpage.
7
 *
8
 * @param array &$links  The links on the frontpage, split into sections.
9
 */
10
function memcacheMonitor_hook_frontpage(array &$links): void
11
{
12
    $links['config'][] = [
13
        'href' => SimpleSAML\Module::getModuleURL('memcacheMonitor/memcachestat.php'),
14
        'text' => '{memcacheMonitor:memcachestat:link_memcacheMonitor}',
15
    ];
16
}
17