@@ -108,6 +108,11 @@ |
||
| 108 | 108 | $location->setLink( $this->getExpandedLink( $link ) ); |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | + /** |
|
| 112 | + * @param string $link |
|
| 113 | + * |
|
| 114 | + * @return string |
|
| 115 | + */ |
|
| 111 | 116 | private function getExpandedLink( $link ) { |
| 112 | 117 | if ( filter_var( $link, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED ) ) { |
| 113 | 118 | return $link; |
@@ -19,6 +19,9 @@ |
||
| 19 | 19 | private $pageContentFetcher; |
| 20 | 20 | private $defaultNamespace; |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @param FileFetcher $fileFetcher |
|
| 24 | + */ |
|
| 22 | 25 | public function __construct( $fileFetcher = null, PageContentFetcher $pageContentFetcher = null ) { |
| 23 | 26 | $this->fileFetcher = $fileFetcher instanceof FileFetcher |
| 24 | 27 | ? $fileFetcher : MapsFactory::newDefault()->getFileFetcher(); |
@@ -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 | |
@@ -462,7 +462,7 @@ |
||
| 462 | 462 | /** |
| 463 | 463 | * Get the icon for a row. |
| 464 | 464 | * |
| 465 | - * @param array $row |
|
| 465 | + * @param SMWResultArray[] $row |
|
| 466 | 466 | * |
| 467 | 467 | * @return string |
| 468 | 468 | */ |
@@ -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; |
@@ -72,6 +72,7 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | /** |
| 74 | 74 | * @since 0.6.3 |
| 75 | + * @param string $featureName |
|
| 75 | 76 | */ |
| 76 | 77 | public function addFeature( $featureName, $handlingClass ) { |
| 77 | 78 | $this->features[$featureName] = $handlingClass; |
@@ -180,6 +181,7 @@ discard block |
||
| 180 | 181 | |
| 181 | 182 | /** |
| 182 | 183 | * @since 0.6.3 |
| 184 | + * @param string $alias |
|
| 183 | 185 | */ |
| 184 | 186 | public function hasAlias( $alias ) { |
| 185 | 187 | return in_array( $alias, $this->aliases ); |
@@ -190,7 +192,7 @@ discard block |
||
| 190 | 192 | * |
| 191 | 193 | * @since 0.7.3 |
| 192 | 194 | * |
| 193 | - * @param mixed $modules Array of string or string |
|
| 195 | + * @param string[] $modules Array of string or string |
|
| 194 | 196 | */ |
| 195 | 197 | public function addResourceModules( $modules ) { |
| 196 | 198 | $this->resourceModules = array_merge( $this->resourceModules, (array)$modules ); |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | /** |
| 73 | 73 | * This function returns the definitions for the parameters used by every map feature. |
| 74 | 74 | * |
| 75 | - * @return array |
|
| 75 | + * @return \ParamProcessor\IParamDefinition[] |
|
| 76 | 76 | */ |
| 77 | 77 | public static function getCommonParameters() { |
| 78 | 78 | $params = []; |