Completed
Push — master ( 127bad...31a673 )
by Matthias
02:19
created

Current::execute()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 18
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 1
Metric Value
c 3
b 0
f 1
dl 0
loc 18
rs 9.4285
cc 2
eloc 10
nc 2
nop 0
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