Skip to content

Commit c35f71c

Browse files
CamelCase variable, and fix typo
1 parent f2c7cb6 commit c35f71c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Cmfcmf/OpenWeatherMap.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public function getApiKey()
185185
* - Use the coordinates: $query must be an associative array containing the 'lat' and 'lon' values.
186186
* - Use the zip code: $query must be a string, prefixed with "zip:"
187187
*
188-
* Zip code may specifify country. e.g., "zip:77070" (Houston, TX, US) or "zip:500001,IN" (Hyderabad, India)
188+
* Zip code may specify country. e.g., "zip:77070" (Houston, TX, US) or "zip:500001,IN" (Hyderabad, India)
189189
*
190190
* @api
191191
*/
@@ -674,8 +674,8 @@ private function buildQueryUrlParameter($query)
674674
case is_numeric($query):
675675
return "id=$query";
676676
case is_string($query) && strpos($query, 'zip:') === 0:
677-
$sub_query = str_replace('zip:', '', $query);
678-
return 'zip='.urlencode($sub_query);
677+
$subQuery = str_replace('zip:', '', $query);
678+
return 'zip='.urlencode($subQuery);
679679
case is_string($query):
680680
return 'q='.urlencode($query);
681681
default:

0 commit comments

Comments
 (0)