| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function checkLatestVersion(): ?string |
||
| 37 | { |
||
| 38 | try { |
||
| 39 | $hubResponse = $this->client->request('GET', $this->hubUri); |
||
| 40 | } catch (GuzzleException $exception) { |
||
| 41 | return null; |
||
| 42 | } |
||
| 43 | |||
| 44 | $hubResponse = json_decode($hubResponse->getBody()->getContents(), true); |
||
| 45 | |||
| 46 | return $this->getMolliePluginLatestVersion($hubResponse); |
||
| 47 | } |
||
| 60 |