Completed
Push — svgpagetools ( 17ef2a...7c844e )
by Andreas
04:40
created

Index   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 13 3
1
<?php
2
3
namespace dokuwiki\Menu\Item;
4
5
class Index extends AbstractItem {
6
7
    /** @inheritdoc */
8
    public function __construct() {
9
        parent::__construct();
10
11
        $this->category = 'site';
12
        $this->accesskey = 'x';
13
14
        // allow searchbots to get to the sitemap from the homepage (when dokuwiki isn't providing a sitemap.xml)
15
        global $conf;
16
        global $ID;
17
        if($conf['start'] == $ID && !$conf['sitemap']) {
18
            $this->nofollow = false;
19
        }
20
    }
21
22
}
23