Failed Conditions
Push — refactorResolving ( 1356e5 )
by Andreas
03:03
created

MediaResolver   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A resolveId() 0 4 1
1
<?php
2
3
namespace dokuwiki\Utils;
4
5
/**
6
 * Creates an absolute media ID from a relative one
7
 */
8
class MediaResolver extends Resolver {
9
10
    /** @inheritDoc */
11
    public function resolveId($id, $rev = '', $isDateAt = false)
12
    {
13
        return cleanID(parent::resolveId($id, $rev, $isDateAt));
14
    }
15
}
16