File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public function geocode($address)
33
33
}
34
34
35
35
if (in_array ($ address , array ('127.0.0.1 ' , '::1 ' ))) {
36
- return array ( $ this ->getLocalhostDefaults ());
36
+ return $ this -> returnResults ([ $ this ->getLocalhostDefaults () ] );
37
37
}
38
38
39
39
$ query = sprintf (self ::ENDPOINT_URL , $ address );
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public function geocode($address)
43
43
}
44
44
45
45
if ('127.0.0.1 ' === $ address ) {
46
- return $ this ->getLocalhostDefaults ();
46
+ return $ this ->returnResults ([ $ this -> getLocalhostDefaults () ] );
47
47
}
48
48
49
49
$ result = json_decode ($ this ->executeQuery ($ address ));
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public function geocode($address)
78
78
}
79
79
80
80
if ('127.0.0.1 ' === $ address ) {
81
- return array ( $ this ->getLocalhostDefaults ());
81
+ return $ this -> returnResults ([ $ this ->getLocalhostDefaults () ] );
82
82
}
83
83
84
84
$ query = sprintf (self ::GEOCODE_ENDPOINT_URL , $ address , $ this ->apiKey );
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public function geocode($address)
38
38
}
39
39
40
40
if ('127.0.0.1 ' === $ address ) {
41
- return array ( $ this ->getLocalhostDefaults ());
41
+ return $ this -> returnResults ([ $ this ->getLocalhostDefaults () ] );
42
42
}
43
43
44
44
$ query = sprintf (self ::ENDPOINT_URL , $ address );
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public function geocode($address)
60
60
}
61
61
62
62
if ('127.0.0.1 ' === $ address ) {
63
- return array ( $ this ->getLocalhostDefaults ());
63
+ return $ this -> returnResults ([ $ this ->getLocalhostDefaults () ] );
64
64
}
65
65
66
66
$ query = sprintf (self ::ENDPOINT_URL , $ this ->apiKey , $ address );
You can’t perform that action at this time.
0 commit comments