| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3.0175 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | 1 | public function getChangedFiles(array $filter = []): array |
|
| 35 | { |
||
| 36 | 1 | $detector = new RangeDetector(); |
|
| 37 | 1 | $ranges = $detector->getRanges($this->io); |
|
| 38 | 1 | $old = $ranges[0]->from()->id(); |
|
| 39 | 1 | $new = $ranges[0]->to()->id(); |
|
| 40 | |||
| 41 | 1 | if (Util::isZeroHash($old) || Util::isZeroHash($new)) { |
|
| 42 | return []; |
||
| 43 | } |
||
| 44 | |||
| 45 | 1 | return $this->repository->getDiffOperator()->getChangedFiles($old, $new, $filter); |
|
| 46 | } |
||
| 48 |