@@ -96,7 +96,7 @@ |
||
| 96 | 96 | * FIXME: store specific code should be in the store component |
| 97 | 97 | * |
| 98 | 98 | * @param string $tableName |
| 99 | - * @param array $fieldNames |
|
| 99 | + * @param string[] $fieldNames |
|
| 100 | 100 | * @param DatabaseBase $dbs |
| 101 | 101 | * |
| 102 | 102 | * @return string|false |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | * @param string $geoService |
| 125 | 125 | * @param boolean $checkForCoords |
| 126 | 126 | * |
| 127 | - * @return LatLongValue|false |
|
| 127 | + * @return LatLongValue |
|
| 128 | 128 | */ |
| 129 | 129 | public static function attemptToGeocode( $coordsOrAddress, $geoService = '', $checkForCoords = true ) { |
| 130 | 130 | if ( $checkForCoords ) { |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | * @param string $address |
| 151 | 151 | * @param string $geoService |
| 152 | 152 | * |
| 153 | - * @return LatLongValue|false |
|
| 153 | + * @return LatLongValue |
|
| 154 | 154 | * @throws MWException |
| 155 | 155 | */ |
| 156 | 156 | public static function geocode( $address, $geoService = '' ) { |
@@ -190,6 +190,9 @@ discard block |
||
| 190 | 190 | return $coordinates; |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | + /** |
|
| 194 | + * @param string $address |
|
| 195 | + */ |
|
| 193 | 196 | private static function getGeocoded( Geocoder $geocoder, $address ) { |
| 194 | 197 | $coordinates = self::getGeocodedAsArray( $geocoder, $address ); |
| 195 | 198 | |
@@ -260,7 +263,7 @@ discard block |
||
| 260 | 263 | * @since 0.7 |
| 261 | 264 | * |
| 262 | 265 | * @param string $geocoderIdentifier |
| 263 | - * @param string|\Maps\Geocoders\Geocoder $geocoder |
|
| 266 | + * @param string $geocoder |
|
| 264 | 267 | */ |
| 265 | 268 | public static function registerGeocoder( $geocoderIdentifier, $geocoder ) { |
| 266 | 269 | self::$registeredGeocoders[$geocoderIdentifier] = $geocoder; |
@@ -331,7 +334,7 @@ discard block |
||
| 331 | 334 | * |
| 332 | 335 | * @param string $geocoderIdentifier |
| 333 | 336 | * |
| 334 | - * @return string|bool |
|
| 337 | + * @return string |
|
| 335 | 338 | * @throws MWException |
| 336 | 339 | */ |
| 337 | 340 | private static function getValidGeocoderIdentifier( $geocoderIdentifier ) { |
@@ -128,6 +128,9 @@ discard block |
||
| 128 | 128 | } |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | + /** |
|
| 132 | + * @param string $link |
|
| 133 | + */ |
|
| 131 | 134 | protected function setLinkFromParameter( Line &$line , $link ) { |
| 132 | 135 | if ( filter_var( $link , FILTER_VALIDATE_URL , FILTER_FLAG_SCHEME_REQUIRED ) ) { |
| 133 | 136 | $line->setLink( $link ); |
@@ -141,7 +144,7 @@ discard block |
||
| 141 | 144 | * Checks if a string is prefixed with link: |
| 142 | 145 | * @static |
| 143 | 146 | * @param $link |
| 144 | - * @return bool|string |
|
| 147 | + * @return string|false |
|
| 145 | 148 | * @since 2.0 |
| 146 | 149 | */ |
| 147 | 150 | private function isLinkParameter( $link ) { |