Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
39 | public function handle(RefsCommand $command): PromiseInterface |
||
40 | { |
||
41 | $namespace = !empty($command->getNamespace()) ? '/' . $command->getNamespace() : ''; |
||
42 | |||
43 | return resolve( |
||
44 | $this->iteratePagesService->iterate('repos/' . $command->getFullName() . '/git/refs' . $namespace) |
||
45 | ->flatMap(function ($commits) { |
||
46 | return observableFromArray($commits); |
||
47 | })->map(function ($commit) { |
||
48 | return $this->hydrator->hydrate(RefInterface::HYDRATE_CLASS, $commit); |
||
49 | }) |
||
50 | ); |
||
51 | } |
||
52 | } |
||
53 |