Current   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 6
Bugs 0 Features 2
Metric Value
c 6
b 0
f 2
dl 0
loc 12
wmc 1
lcom 0
cbo 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCommits() 0 6 1
1
<?php
2
3
namespace Cauditor\Runners;
4
5
/**
6
 * @author Matthias Mullie <[email protected]>
7
 * @copyright Copyright (c) 2016, Matthias Mullie. All rights reserved.
8
 * @license LICENSE MIT
9
 */
10
class Current extends All implements RunnerInterface
11
{
12
    /**
13
     * @return string[]
14
     */
15
    protected function getCommits()
16
    {
17
        exec("git log --pretty=format:'%H' -1", $commits);
18
19
        return $commits;
20
    }
21
}
22