ShellAdapter   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 9
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A gitEffort() 0 6 2
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