Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
52 | 8 | public function getLocation( |
|
53 | string $ipAdr = null, |
||
54 | string $url = null, |
||
55 | string $option = null |
||
56 | ) { |
||
57 | 8 | $res = null; |
|
58 | |||
59 | 8 | if ($url) { |
|
60 | 7 | $url = $option ? $url . $ipAdr . $option . $this->api : $url; |
|
61 | |||
62 | 7 | $res = $this->curl->curlApi($url); |
|
63 | } |
||
64 | |||
65 | 8 | return $res; |
|
66 | } |
||
68 |