| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 30 | 4 | public function handle(SubscribeCommand $command): PromiseInterface |
|
| 31 | { |
||
| 32 | 4 | return $this->requestService->request( |
|
| 33 | 4 | new Request( |
|
| 34 | 4 | 'PUT', |
|
| 35 | 4 | 'repos/' . $command->getRepository() . '/subscription', |
|
| 36 | 4 | [], |
|
| 37 | 4 | new JsonStream([ |
|
| 38 | 4 | 'subscribed' => $command->isSubscribed(), |
|
| 39 | 4 | 'ignored' => $command->isIgnored(), |
|
| 40 | ]) |
||
| 41 | ) |
||
| 42 | ); |
||
| 43 | } |
||
| 44 | } |
||
| 45 |