Test Failed
Branch feature__set_up_scrutinizer (ea6624)
by Robin
06:04 queued 02:46
created

Windows::getUserHomePath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace App\Support\Mechanics;
4
5
use App\Support\Console\ServerBag;
6
7
class Windows extends Untrained
8
{
9
    /**
10
     * Return the User's home directory path
11
     *
12
     * @return string
13
     */
14 1
    public function getUserHomePath()
15
    {
16 1
        $bag = app(ServerBag::class);
17
18 1
        return $bag->get('HOME') ?? $bag->get('HOMEDRIVE').$bag->get('HOMEPATH');
19
    }
20
}
21