@@ -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 ); |
@@ -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 | } |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | /** |
| 153 | - * @return Location[] |
|
| 153 | + * @return \Generator |
|
| 154 | 154 | */ |
| 155 | 155 | public function getLocations(): iterable { |
| 156 | 156 | while ( ( $row = $this->queryResult->getNext() ) !== false ) { |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | /** |
| 372 | 372 | * Get the icon for a row. |
| 373 | 373 | * |
| 374 | - * @param array $row |
|
| 374 | + * @param SMWResultArray[] $row |
|
| 375 | 375 | * |
| 376 | 376 | * @return string |
| 377 | 377 | */ |
@@ -461,6 +461,9 @@ discard block |
||
| 461 | 461 | ); |
| 462 | 462 | } |
| 463 | 463 | |
| 464 | + /** |
|
| 465 | + * @return string |
|
| 466 | + */ |
|
| 464 | 467 | private function getTitleOutput( string $titleText ) { |
| 465 | 468 | $title = Title::newFromText( $titleText ); |
| 466 | 469 | |