Completed
Branch feature/copyOverExistingFiles (d55e2a)
by Jimmy
03:37
created

app_version()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 2
b 0
f 0
1
<?php
2
3
use Illuminate\Container\Container;
4
use Spinen\Version\Version;
5
6
// @codeCoverageIgnoreStart
7
if (!function_exists('app_version')) {
8
// @codeCoverageIgnoreEnd
9
    /**
10
     * Return the version of the app.
11
     *
12
     * @return string
13
     */
14
    function app_version()
15
    {
16 1
        return Container::getInstance()
17 1
                        ->make(Version::class);
18
    }
19
}
20