| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| 1 | <?php |
||
| 26 | public function repository(string $repository): Repository |
||
| 27 | { |
||
| 28 | return await( |
||
| 29 | $this->transport->request('repos/' . $repository)->then(function ($json) { |
||
| 30 | return resolve($this->transport->hydrate(Repository::class, $json['repo'])); |
||
| 31 | }), |
||
| 32 | $this->transport->getLoop() |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | } |
||
| 36 |