@@ -152,7 +152,7 @@ |
||
| 152 | 152 | * |
| 153 | 153 | * @since 0.6.5 |
| 154 | 154 | * |
| 155 | - * @param $distance String |
|
| 155 | + * @param string $distance String |
|
| 156 | 156 | * |
| 157 | 157 | * @return string |
| 158 | 158 | */ |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | * |
| 22 | 22 | * @param string $value |
| 23 | 23 | * |
| 24 | - * @return WmsOverlay |
|
| 24 | + * @return ImageOverlay |
|
| 25 | 25 | * @throws ParseException |
| 26 | 26 | */ |
| 27 | 27 | protected function stringParse( $value ) { |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | * @param IParamDefinition[] $definitions |
| 52 | 52 | * @param IParam[] $params |
| 53 | 53 | * |
| 54 | - * @return mixed |
|
| 54 | + * @return string |
|
| 55 | 55 | */ |
| 56 | 56 | protected function formatValue( $value, IParam $param, array &$definitions, array $params ) { |
| 57 | 57 | // Make sure the service is valid. |
@@ -83,6 +83,11 @@ |
||
| 83 | 83 | $location->setLink( $this->getExpandedLink( $link ) ); |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | + /** |
|
| 87 | + * @param string $link |
|
| 88 | + * |
|
| 89 | + * @return string |
|
| 90 | + */ |
|
| 86 | 91 | private function getExpandedLink( $link ) { |
| 87 | 92 | if ( filter_var( $link , FILTER_VALIDATE_URL , FILTER_FLAG_SCHEME_REQUIRED ) ) { |
| 88 | 93 | return $link; |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use DataValues\Geo\Parsers\GeoCoordinateParser; |
| 6 | 6 | use DataValues\Geo\Values\LatLongValue; |
| 7 | 7 | use Maps\Elements\Location; |
| 8 | -use MWException; |
|
| 9 | 8 | use Title; |
| 10 | 9 | use ValueParsers\ParserOptions; |
| 11 | 10 | use ValueParsers\ParseException; |
@@ -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 !== ''; |
@@ -50,6 +50,10 @@ |
||
| 50 | 50 | $this->assertHasJsonKeyWithValue( $polygon, 'fillOpacity', '0.42' ); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | + /** |
|
| 54 | + * @param string $key |
|
| 55 | + * @param string $value |
|
| 56 | + */ |
|
| 53 | 57 | protected function assertHasJsonKeyWithValue( Polygon $polygon, $key, $value ) { |
| 54 | 58 | $json = $polygon->getJSONObject(); |
| 55 | 59 | |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | /** |
| 68 | 68 | * This function returns the definitions for the parameters used by every map feature. |
| 69 | 69 | * |
| 70 | - * @return array |
|
| 70 | + * @return ParamProcessor\IParamDefinition[] |
|
| 71 | 71 | */ |
| 72 | 72 | public static function getCommonParameters() { |
| 73 | 73 | global $egMapsAvailableGeoServices, $egMapsDefaultGeoService, $egMapsMapWidth, $egMapsMapHeight, $egMapsDefaultService; |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | * |
| 76 | 76 | * @since 0.7 |
| 77 | 77 | * |
| 78 | - * @return array |
|
| 78 | + * @return string[] |
|
| 79 | 79 | */ |
| 80 | 80 | public static function getOverrides() { |
| 81 | 81 | return [ 'googlemaps3' ]; |
@@ -148,6 +148,10 @@ |
||
| 148 | 148 | return $locationJsonObjects; |
| 149 | 149 | } |
| 150 | 150 | |
| 151 | + /** |
|
| 152 | + * @param string $iconUrl |
|
| 153 | + * @param string $visitedIconUrl |
|
| 154 | + */ |
|
| 151 | 155 | private function getLocationJsonObject( Location $location, array $params, $iconUrl, $visitedIconUrl, Parser $parserClone ) { |
| 152 | 156 | $jsonObj = $location->getJSONObject( $params['title'], $params['label'], $iconUrl, '', '', $visitedIconUrl ); |
| 153 | 157 | |