@@ -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. |
@@ -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 |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | /** |
57 | 57 | * @param string $serviceName |
58 | - * @param array $aliases |
|
58 | + * @param string[] $aliases |
|
59 | 59 | */ |
60 | 60 | public function __construct( $serviceName, array $aliases = [] ) { |
61 | 61 | $this->serviceName = $serviceName; |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | * |
199 | 199 | * @since 0.7.3 |
200 | 200 | * |
201 | - * @param mixed $modules Array of string or string |
|
201 | + * @param string[] $modules Array of string or string |
|
202 | 202 | */ |
203 | 203 | public function addResourceModules( $modules ) { |
204 | 204 | $this->resourceModules = array_merge( $this->resourceModules, (array)$modules ); |