Completed
Push — master ( 5c707d...a3857c )
by James Ekow Abaka
11s
created

functions.php ➔ get_asset()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
ccs 0
cts 1
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
use ntentan\honam\AssetsLoader;
3
use ntentan\honam\TemplateEngine;
4
5
function t($template, $templateData = array())
6
{
7 17
    return TemplateEngine::render($template, $templateData);
8
}
9
10
function unescape($item)
0 ignored issues
show
Documentation introduced by
The return type could not be reliably inferred; please add a @return annotation.

Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a @return annotation as described here.

Loading history...
11
{
12 10
    if($item instanceof ntentan\honam\template_engines\php\Variable) {
13 10
        return $item->unescape();
14
    } else {
15
        return $item;
16
    }
17
}
18