Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
47 | private function generateRates() |
||
48 | { |
||
49 | if (empty($this->rates)) { |
||
50 | $res = $this->client->request("GET", $this->url_api, [ |
||
51 | 'query' => ['base' => $this->base] |
||
52 | ]); |
||
53 | |||
54 | $res_arr = \GuzzleHttp\json_decode($res->getBody(), true); |
||
55 | $this->rates = $res_arr["rates"]; |
||
56 | } |
||
57 | } |
||
58 | } |
||
59 |