Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 3.1852 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
47 | 3 | private function generateRates() |
|
48 | { |
||
49 | 3 | 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 | 3 | } |
|
58 | |||
75 |