Passed
Push — master ( 9251f2...ca8fc4 )
by Herberto
03:14
created

ShellAdapter::gitEffort()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 3
nc 2
nop 2
crap 6
1
<?php
2
3
namespace Hgraca\Phorensic\Miner\Vcs\Git\Console;
4
5
use Hgraca\Phorensic\Miner\Vcs\Git\ConsoleInterface;
6
7
final class ShellAdapter implements ConsoleInterface
8
{
9
    public function gitEffort(string $repoPath, string $since = null): string
10
    {
11
        $shellCommand = "cd $repoPath; git effort" . ($since ? " -- --since='$since'" : '');
12
13
        return `$shellCommand`;
14
    }
15
}
16