File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -62,11 +62,11 @@ public function geocode(string $value): Collection
62
62
->withLimit ($ this ->limit );
63
63
64
64
if (!empty ($ this ->locale )) {
65
- $ query ->withLocale ($ this ->locale );
65
+ $ query = $ query ->withLocale ($ this ->locale );
66
66
}
67
67
68
68
if (!empty ($ this ->bounds )) {
69
- $ query ->withBounds ($ this ->bounds );
69
+ $ query = $ query ->withBounds ($ this ->bounds );
70
70
}
71
71
72
72
return $ this ->provider ->geocodeQuery ($ query );
@@ -112,7 +112,7 @@ public function reverseQuery(ReverseQuery $query): Collection
112
112
{
113
113
$ locale = $ query ->getLocale ();
114
114
if (empty ($ locale ) && null !== $ this ->locale ) {
115
- $ query ->withLocale ($ this ->locale );
115
+ $ query = $ query ->withLocale ($ this ->locale );
116
116
}
117
117
118
118
return $ this ->provider ->reverseQuery ($ query );
You can’t perform that action at this time.
0 commit comments