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

MediaChangeLog::getChangelogFilename()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace dokuwiki\ChangeLog;
4
5
/**
6
 * handles changelog of a media file
7
 */
8
class MediaChangeLog 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 mediaMetaFN($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 mediaFN($this->id);
29
    }
30
}
31