helpers.php ➔ vasri()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 4
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
use ExoUNX\Vasri\Vasri;
4
5
if ( ! function_exists('vasri')) {
6
    /**
7
     * The Vasri helper function
8
     *
9
     * @param  string  $path
10
     * @param  bool  $versioning
11
     * @param  bool  $sri
12
     * @param  string  $keyword
13
     *
14
     * @return string
15
     * @throws Exception
16
     */
17
    function vasri(string $path, bool $versioning = true, bool $sri = true, $keyword = 'anonymous'): string
18
    {
19
        $vasri = new Vasri();
20
21
        return $vasri->vasri($path, $versioning, $sri, $keyword);
22
    }
23
}
24