GitNotFoundException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 5
cts 5
cp 1
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
crap 1
1
<?php
2
3
namespace AurimasNiekis\GitConfig\Exception;
4
5
use Exception;
6
use Throwable;
7
8
/**
9
 * Class GitNotFoundException
10
 *
11
 * @package AurimasNiekis\GitConfig\Exception
12
 * @author  Aurimas Niekis <[email protected]>
13
 */
14
class GitNotFoundException extends Exception
15
{
16 1
    public function __construct()
17
    {
18 1
        parent::__construct(
19
            sprintf(
20 1
                'Git executable not found in "%s"',
21 1
                getenv('PATH')
22
            )
23
        );
24 1
    }
25
26
}