Skip to content

Commit 4b119a9

Browse files
authored
Merge pull request #15 from victordzmr/patch-1
Solved value swapping
2 parents 3a04fef + 989cdc6 commit 4b119a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Drivers/IPApiDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public function get($ip)
2525
'countryCode' => array_get($data, 'countryCode'),
2626
'latitude' => array_get($data, 'lat'),
2727
'longitude' => array_get($data, 'lon'),
28-
'region' => array_get($data, 'region'),
29-
'regionCode' => array_get($data, 'regionName'),
28+
'region' => array_get($data, 'regionName'),
29+
'regionCode' => array_get($data, 'region'),
3030
'timezone' => array_get($data, 'timezone'),
3131
'postalCode' => array_get($data, 'zip'),
3232
];

0 commit comments

Comments
 (0)