ChangedFiles   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 11
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

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