Conditions | 2 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function getModuleHealthInfo() |
||
21 | { |
||
22 | $addons = $this->getModuleNames(); |
||
23 | $endpoint = 'addons.silverstripe.org/api/ratings?addons=' . implode(',', $addons); |
||
24 | return $this->doRequest($endpoint, function ($responseBody) { |
||
25 | return isset($responseBody) ? $responseBody['ratings'] : []; |
||
26 | }); |
||
52 |