Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
48 | public function replacement(array $options): string |
||
49 | { |
||
50 | $files = isset($options['of-type']) |
||
51 | ? $this->repository->getIndexOperator()->getStagedFilesOfType($options['of-type']) |
||
52 | : $this->repository->getIndexOperator()->getStagedFiles(); |
||
53 | |||
54 | return implode(($options['separated-by'] ?? ' '), $files); |
||
55 | } |
||
57 |