Failed Conditions
Push — psr2 ( 9ddafc...b78f68 )
by Andreas
11:21 queued 07:11
created

PageChangeLog   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getChangelogFilename() 0 4 1
A getFilename() 0 4 1
1
<?php
2
3
namespace dokuwiki\ChangeLog;
4
5
/**
6
 * handles changelog of a wiki page
7
 */
8
class PageChangeLog extends ChangeLog
9
{
10
11
    /**
12
     * Returns path to changelog
13
     *
14
     * @return string path to file
15
     */
16
    protected function getChangelogFilename()
17
    {
18
        return metaFN($this->id, '.changes');
19
    }
20
21
    /**
22
     * Returns path to current page/media
23
     *
24
     * @return string path to file
25
     */
26
    protected function getFilename()
27
    {
28
        return wikiFN($this->id);
29
    }
30
}
31