Conditions | 3 |
Paths | 2 |
Total Lines | 19 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
39 | private function normalizeResponse($address) |
||
40 | { |
||
41 | if (sizeof($address) > 0 && isset($address["address"])) { |
||
42 | return [ |
||
43 | "status" => true, |
||
44 | "address" => $address["address"], |
||
45 | "district" => $address["district"], |
||
46 | "city" => $address["city"], |
||
47 | "state" => $address["state"], |
||
48 | "api" => "WideNet" |
||
49 | ]; |
||
50 | } else { |
||
51 | return [ |
||
52 | "status" => false, |
||
53 | "address" => null, |
||
54 | "district" => null, |
||
55 | "city" => null, |
||
56 | "state" => null, |
||
57 | "api" => "WideNet" |
||
58 | ]; |
||
62 |