@@ -63,6 +63,7 @@ discard block |
||
63 | 63 | |
64 | 64 | /** |
65 | 65 | * @see SMWDataValue::parseUserValue |
66 | + * @param string $value |
|
66 | 67 | */ |
67 | 68 | protected function parseUserValue( $value ) { |
68 | 69 | if ( !is_string( $value ) ) { |
@@ -112,6 +113,9 @@ discard block |
||
112 | 113 | } |
113 | 114 | } |
114 | 115 | |
116 | + /** |
|
117 | + * @return string |
|
118 | + */ |
|
115 | 119 | private function parserDistance( $distance ) { |
116 | 120 | if ( $distance !== false ) { |
117 | 121 | $distance = substr( trim( $distance ), 0, -1 ); |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | } |
170 | 170 | |
171 | 171 | /** |
172 | - * @return Location[] |
|
172 | + * @return \Generator |
|
173 | 173 | */ |
174 | 174 | public function getLocations(): iterable { |
175 | 175 | while ( ( $row = $this->queryResult->getNext() ) !== false ) { |
@@ -410,7 +410,7 @@ discard block |
||
410 | 410 | /** |
411 | 411 | * Get the icon for a row. |
412 | 412 | * |
413 | - * @param array $row |
|
413 | + * @param SMWResultArray[] $row |
|
414 | 414 | * |
415 | 415 | * @return string |
416 | 416 | */ |
@@ -19,6 +19,9 @@ |
||
19 | 19 | |
20 | 20 | private $geocoder; |
21 | 21 | |
22 | + /** |
|
23 | + * @param \Jeroen\SimpleGeocoder\Geocoders\Decorators\CoordinateFriendlyGeocoder $geocoder |
|
24 | + */ |
|
22 | 25 | public function __construct( $geocoder = null ) { |
23 | 26 | $this->geocoder = $geocoder instanceof Geocoder ? $geocoder : MapsFactory::globalInstance()->getGeocoder(); |
24 | 27 | } |