@@ -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 | |
@@ -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 ); |
@@ -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 | */ |