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