@@ -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 |
@@ -21,6 +21,9 @@ |
||
| 21 | 21 | |
| 22 | 22 | private $geocoder; |
| 23 | 23 | |
| 24 | + /** |
|
| 25 | + * @param \Jeroen\SimpleGeocoder\Geocoders\Decorators\CoordinateFriendlyGeocoder $geocoder |
|
| 26 | + */ |
|
| 24 | 27 | public function __construct( $geocoder = null ) { |
| 25 | 28 | $this->geocoder = $geocoder instanceof Geocoder ? $geocoder : MapsFactory::newDefault()->newGeocoder(); |
| 26 | 29 | } |
@@ -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 | */ |