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

Linux::getUserHomePath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
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 Linux extends Untrained
8
{
9
    /**
10
     * Return the User's home directory path
11
     *
12
     * @return string
13
     */
14 50
    public function getUserHomePath()
15
    {
16 50
        return app(ServerBag::class)->get('HOME');
17
    }
18
}
19