| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2.0078 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | 26 | public function getChangedFiles(array $filter = []): array |
|
| 38 | { |
||
| 39 | 26 | $previousHead = $this->io->getArgument(Hooks::ARG_PREVIOUS_HEAD, 'HEAD@{1}'); |
|
| 40 | 26 | if (Util::isZeroHash($previousHead)) { |
|
| 41 | return []; |
||
| 42 | } |
||
| 43 | |||
| 44 | 26 | return $this->repository->getDiffOperator()->getChangedFiles( |
|
| 45 | 26 | $previousHead, |
|
| 46 | 26 | 'HEAD', |
|
| 47 | 26 | $filter |
|
| 48 | 26 | ); |
|
| 51 |