@@ -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' ); |
@@ -232,7 +232,7 @@ |
||
| 232 | 232 | * |
| 233 | 233 | * @since 2.0 |
| 234 | 234 | * |
| 235 | - * @return string |
|
| 235 | + * @return boolean |
|
| 236 | 236 | */ |
| 237 | 237 | public function hasGroup() { |
| 238 | 238 | return $this->group !== ''; |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | * @param string|false $mappingService |
| 126 | 126 | * @param boolean $checkForCoords |
| 127 | 127 | * |
| 128 | - * @return LatLongValue|false |
|
| 128 | + * @return LatLongValue |
|
| 129 | 129 | */ |
| 130 | 130 | public static function attemptToGeocode( $coordsOrAddress, $geoservice = '', $mappingService = false, $checkForCoords = true ) { |
| 131 | 131 | if ( $checkForCoords ) { |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | * @param string $geoService |
| 202 | 202 | * @param string|false $mappingService |
| 203 | 203 | * |
| 204 | - * @return LatLongValue|false |
|
| 204 | + * @return LatLongValue |
|
| 205 | 205 | * @throws MWException |
| 206 | 206 | */ |
| 207 | 207 | public static function geocode( $address, $geoService = '', $mappingService = false ) { |
@@ -241,6 +241,9 @@ discard block |
||
| 241 | 241 | return $coordinates; |
| 242 | 242 | } |
| 243 | 243 | |
| 244 | + /** |
|
| 245 | + * @param string $address |
|
| 246 | + */ |
|
| 244 | 247 | private static function getGeocoded( Geocoder $geocoder, $address ) { |
| 245 | 248 | $coordinates = self::getGeocodedAsArray( $geocoder, $address ); |
| 246 | 249 | |
@@ -311,7 +314,7 @@ discard block |
||
| 311 | 314 | * @since 0.7 |
| 312 | 315 | * |
| 313 | 316 | * @param string $geocoderIdentifier |
| 314 | - * @param string|\Maps\Geocoders\Geocoder $geocoder |
|
| 317 | + * @param string $geocoder |
|
| 315 | 318 | */ |
| 316 | 319 | public static function registerGeocoder( $geocoderIdentifier, $geocoder ) { |
| 317 | 320 | self::$registeredGeocoders[$geocoderIdentifier] = $geocoder; |
@@ -381,7 +384,7 @@ discard block |
||
| 381 | 384 | * |
| 382 | 385 | * @param string $geocoderIdentifier |
| 383 | 386 | * |
| 384 | - * @return string|bool |
|
| 387 | + * @return string |
|
| 385 | 388 | * @throws MWException |
| 386 | 389 | */ |
| 387 | 390 | protected static function getValidGeocoderIdentifier( $geocoderIdentifier ) { |