@@ -91,7 +91,7 @@ |
||
91 | 91 | * |
92 | 92 | * @param $type |
93 | 93 | * |
94 | - * @return array |
|
94 | + * @return string[] |
|
95 | 95 | */ |
96 | 96 | protected function getDefaultParameters( $type ) { |
97 | 97 | return array( 'location1', 'location2', 'unit', 'decimals' ); |
@@ -91,7 +91,7 @@ |
||
91 | 91 | * |
92 | 92 | * @param $type |
93 | 93 | * |
94 | - * @return array |
|
94 | + * @return string[] |
|
95 | 95 | */ |
96 | 96 | protected function getDefaultParameters( $type ) { |
97 | 97 | return array( 'location1', 'location2', 'unit', 'decimals' ); |
@@ -91,7 +91,7 @@ |
||
91 | 91 | * |
92 | 92 | * @param $type |
93 | 93 | * |
94 | - * @return array |
|
94 | + * @return string[] |
|
95 | 95 | */ |
96 | 96 | protected function getDefaultParameters( $type ) { |
97 | 97 | return array( 'location1', 'location2', 'unit', 'decimals' ); |
@@ -91,7 +91,7 @@ |
||
91 | 91 | * |
92 | 92 | * @param $type |
93 | 93 | * |
94 | - * @return array |
|
94 | + * @return string[] |
|
95 | 95 | */ |
96 | 96 | protected function getDefaultParameters( $type ) { |
97 | 97 | return array( 'location1', 'location2', 'unit', 'decimals' ); |
@@ -91,7 +91,7 @@ |
||
91 | 91 | * |
92 | 92 | * @param $type |
93 | 93 | * |
94 | - * @return array |
|
94 | + * @return string[] |
|
95 | 95 | */ |
96 | 96 | protected function getDefaultParameters( $type ) { |
97 | 97 | return array( 'location1', 'location2', 'unit', 'decimals' ); |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | * @param string|false $mappingService |
125 | 125 | * @param boolean $checkForCoords |
126 | 126 | * |
127 | - * @return LatLongValue|false |
|
127 | + * @return LatLongValue |
|
128 | 128 | */ |
129 | 129 | public static function attemptToGeocode( $coordsOrAddress, $geoservice = '', $mappingService = false, $checkForCoords = true ) { |
130 | 130 | if ( $checkForCoords ) { |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | * @param string $geoService |
201 | 201 | * @param string|false $mappingService |
202 | 202 | * |
203 | - * @return LatLongValue|false |
|
203 | + * @return LatLongValue |
|
204 | 204 | * @throws MWException |
205 | 205 | */ |
206 | 206 | public static function geocode( $address, $geoService = '', $mappingService = false ) { |
@@ -240,6 +240,9 @@ discard block |
||
240 | 240 | return $coordinates; |
241 | 241 | } |
242 | 242 | |
243 | + /** |
|
244 | + * @param string $address |
|
245 | + */ |
|
243 | 246 | private static function getGeocoded( Geocoder $geocoder, $address ) { |
244 | 247 | $coordinates = self::getGeocodedAsArray( $geocoder, $address ); |
245 | 248 | |
@@ -373,7 +376,7 @@ discard block |
||
373 | 376 | * |
374 | 377 | * @param string $geocoderIdentifier |
375 | 378 | * |
376 | - * @return string|bool |
|
379 | + * @return string |
|
377 | 380 | * @throws MWException |
378 | 381 | */ |
379 | 382 | protected static function getValidGeocoderIdentifier( $geocoderIdentifier ) { |