We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e415032 commit 2dd2edaCopy full SHA for 2dd2eda
src/Concerns/HasGooglePlaceApi.php
@@ -146,9 +146,10 @@ protected function getFormattedApiResults($data): array
146
147
// array map with keys
148
$addressFields = array_merge(...array_map(function ($key, $item) {
149
- if (!isset($item['types']) || empty($item['types']) || !isset($item['types'][0])) {
+ if (! isset($item['types']) || empty($item['types']) || ! isset($item['types'][0])) {
150
return [];
151
}
152
+
153
return [
154
$item['types'][0] => [
155
'long_name' => $item[$this->currentApiNamingConventions['longText']],
0 commit comments