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

Windows   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 12
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getUserHomePath() 0 5 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