Completed
Push — master ( 2f70e4...9ba478 )
by Andreas
02:56
created

Source   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 25
rs 10
wmc 4
lcom 0
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A minimumPermission() 0 3 1
A preProcess() 0 10 2
A tplContent() 0 3 1
1
<?php
2
3
namespace dokuwiki\Action;
4
5
/**
6
 * Class Source
7
 *
8
 * Show the source of a page
9
 *
10
 * @package dokuwiki\Action
11
 */
12
class Source extends AbstractAction {
13
14
    /** @inheritdoc */
15
    public function minimumPermission() {
16
        return AUTH_READ;
17
    }
18
19
    /** @inheritdoc */
20
    public function preProcess() {
21
        global $TEXT;
22
        global $INFO;
23
        global $ID;
24
        global $REV;
25
26
        if($INFO['exists']) {
27
            $TEXT = rawWiki($ID, $REV);
28
        }
29
    }
30
31
    /** @inheritdoc */
32
    public function tplContent() {
33
        html_edit();
34
    }
35
36
}
37