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

GetStagedFiles   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
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\DiffIndex;
11
12
use SebastianFeldmann\Git\Command\Base;
13
14
/**
15
 * Class GetStagedFiles
16
 *
17
 * @package SebastianFeldmann\Git
18
 */
19
class GetStagedFiles extends Base
20
{
21
    /**
22
     * Return the command to execute.
23
     *
24
     * @return string
25
     * @throws \RuntimeException
26
     */
27 1
    protected function getGitCommand() : string
28
    {
29 1
        return 'diff-index --cached --name-status HEAD';
30
    }
31
}
32