Completed
Push — master ( b081d5...114b33 )
by Nicolas
12:53
created

helpers.php ➔ module_path()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 6
ccs 2
cts 2
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
if (! function_exists('module_path')) {
4
    function module_path($name)
5
    {
6 1
        $module = app('modules')->find($name);
7
8 1
        return $module->getPath();
9
    }
10
}
11