Completed
Push — master ( 3952c5...023801 )
by Sebastian
02:12
created

ChangedFiles   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getGitCommand() 0 4 1
1
<?php
2
/**
3
 * This file is part of SebastianFeldmann\Git.
4
 *
5
 * (c) Sebastian Feldmann <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace SebastianFeldmann\Git\Command\Log;
11
12
/**
13
 * Class Log
14
 *
15
 * @package SebastianFeldmann\Git
16
 */
17
class ChangedFiles extends Log
18
{
19
    /**
20
     * Return the command to execute.
21
     *
22
     * @return string
23
     * @throws \RuntimeException
24
     */
25 2
    protected function getGitCommand(): string
26
    {
27 2
        return 'log --format=\'\' --name-only' . $this->author . $this->merges . $this->since;
28
    }
29
}
30