Current::getCommits()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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