Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
32 | 1 | public function handle(CommunityHealthCommand $command): PromiseInterface |
|
33 | { |
||
34 | 1 | return $this->service->fetch( |
|
35 | 1 | 'repos/' . $command->getFullName() . '/community/profile', |
|
36 | 1 | '', |
|
37 | 1 | CommunityHealthInterface::HYDRATE_CLASS, |
|
38 | [ |
||
39 | 1 | TransportOptions::HEADERS => [ |
|
40 | 1 | 'Accept' => AcceptHeader::getHeader(AcceptHeader::PRESET_COMMUNITY_HEALTH), |
|
41 | ], |
||
42 | ] |
||
43 | ); |
||
44 | } |
||
45 | } |
||
46 |