| Conditions | 2 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 15 | public function builds(): ObservableInterface |
||
| 16 | { |
||
| 17 | return Observable::create(function (ObserverInterface $observer) { |
||
| 18 | $this->getTransport()->request('repos/' . $this->slug() . '/builds')->then(function ($response) use ($observer) { |
||
| 19 | foreach ($response['builds'] as $build) { |
||
| 20 | $observer->onNext($this->getTransport()->hydrate(Build::class, $build)); |
||
| 21 | } |
||
| 22 | }); |
||
| 23 | }); |
||
| 24 | } |
||
| 25 | } |
||
| 26 |