| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function callService(string $method, string $uri, array $parameters = null): array |
||
| 22 | { |
||
| 23 | $data = json_decode(json_encode($this->api->callService($this->serviceName, $method, $uri, $parameters)), true); |
||
| 24 | |||
| 25 | if (!is_array($data)) { |
||
| 26 | // todo throw error? |
||
| 27 | return []; |
||
| 28 | } |
||
| 29 | |||
| 30 | return $data; |
||
| 31 | } |
||
| 32 | |||
| 74 |