| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 55 | 1 | public function getServerStatus(string $request = 'test') |
|
| 56 | { |
||
| 57 | // make the URL for this request |
||
| 58 | 1 | $url = sprintf('%s/Ping/%s', $this->getBaseUrl(), $request); |
|
| 59 | |||
| 60 | // get the response |
||
| 61 | 1 | $response = $this->client->get($url, [ |
|
| 62 | 1 | 'headers' => array_merge( |
|
| 63 | 1 | ['PingToken' => $this->config->get('signere.ping_token')] |
|
| 64 | ), |
||
| 65 | ]); |
||
| 66 | |||
| 67 | // return the response |
||
| 68 | 1 | return $response; |
|
| 69 | } |
||
| 70 | } |
||
| 71 |