@@ -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. |
@@ -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 |
@@ -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 |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | } |
240 | 240 | |
241 | 241 | /** |
242 | - * @return array |
|
242 | + * @return Element[] |
|
243 | 243 | */ |
244 | 244 | public function getShapes() { |
245 | 245 | $this->findShapes(); |
@@ -515,7 +515,7 @@ discard block |
||
515 | 515 | /** |
516 | 516 | * Get the icon for a row. |
517 | 517 | * |
518 | - * @param array $row |
|
518 | + * @param SMWResultArray[] $row |
|
519 | 519 | * |
520 | 520 | * @return string |
521 | 521 | */ |
@@ -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 |
@@ -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 $egMapsMapWidth, $egMapsMapHeight, $egMapsDefaultService; |
@@ -140,7 +140,7 @@ |
||
140 | 140 | * |
141 | 141 | * @since 0.6.5 |
142 | 142 | * |
143 | - * @param $distance String |
|
143 | + * @param string $distance String |
|
144 | 144 | * |
145 | 145 | * @return string |
146 | 146 | */ |
@@ -110,7 +110,7 @@ |
||
110 | 110 | * |
111 | 111 | * @since 0.7 |
112 | 112 | * |
113 | - * @return array |
|
113 | + * @return string[] |
|
114 | 114 | */ |
115 | 115 | protected function getDefaultParameters( $type ) { |
116 | 116 | return [ 'location', 'format', 'directional' ]; |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * |
63 | 63 | * @since 2.0 |
64 | 64 | * |
65 | - * @return array |
|
65 | + * @return string[] |
|
66 | 66 | */ |
67 | 67 | protected function getNames() { |
68 | 68 | return [ $this->getName(), 'display_point', 'display_points', 'display_line' ]; |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | * |
115 | 115 | * @since 0.7 |
116 | 116 | * |
117 | - * @return array |
|
117 | + * @return string[] |
|
118 | 118 | */ |
119 | 119 | protected function getDefaultParameters( $type ) { |
120 | 120 | return [ 'coordinates' ]; |