Passed
Pull Request — master (#9)
by Jakub
03:57
created

DefaultTargetDir   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A defaultTargetDir() 0 3 2
1
<?php declare(strict_types=1);
2
3
namespace Zalas\Toolbox\Cli\Command;
4
5
trait DefaultTargetDir
6
{
7 15
    private function defaultTargetDir(): string
8
    {
9 15
        return \getenv('TOOLBOX_TARGET_DIR') ? \getenv('TOOLBOX_TARGET_DIR') : '/usr/local/bin';
10
    }
11
}
12