| Total Complexity | 5 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | class PostRewrite implements Detecting |
||
| 28 | { |
||
| 29 | /** |
||
| 30 | * Returns list of refs |
||
| 31 | * |
||
| 32 | * @param \CaptainHook\App\Console\IO $io |
||
| 33 | * @return \CaptainHook\App\Git\Range[] |
||
| 34 | */ |
||
| 35 | 1 | public function getRanges(IO $io): array |
|
| 36 | { |
||
| 37 | 1 | return $this->createFromStdIn($io->getStandardInput()); |
|
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Create ranges from stdIn |
||
| 42 | * |
||
| 43 | * @param array<string> $stdIn |
||
| 44 | * @return array<\CaptainHook\App\Git\Range> |
||
| 45 | */ |
||
| 46 | 1 | private function createFromStdIn(array $stdIn): array |
|
| 58 | } |
||
| 59 | } |
||
| 60 |