Conditions | 4 |
Paths | 8 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
32 | 1 | public function init() |
|
33 | { |
||
34 | 1 | $this->multiCurl = new MultiCurl(); |
|
35 | 1 | $filename = ANAX_INSTALL_PATH . "/config/api.php"; |
|
36 | 1 | $api = file_exists($filename) ? require $filename : null; |
|
37 | 1 | $this->baseAddress = $api ? $api["url"]["opencagedata"] : getenv("API_URL_OPENCAGEDATA"); |
|
38 | 1 | $this->apiKey = $api ? $api["key"]["opencagedata"] : getenv("API_KEY_OPENCAGEDATA"); |
|
39 | 1 | $this->allData = []; |
|
40 | 1 | } |
|
64 |