Completed
Push — master ( 88c9eb...e2ac37 )
by Jeroen De
03:05
created
src/MediaWiki/ParserHooks/CoordinatesFunction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
 	 *
94 94
 	 * @see ParserHook::getDefaultParameters
95 95
 	 *
96
-	 * @return array
96
+	 * @return string[]
97 97
 	 */
98 98
 	protected function getDefaultParameters( $type ) {
99 99
 		return [ 'location', 'format', 'directional' ];
Please login to merge, or discard this patch.
src/MediaWiki/ParserHooks/DistanceFunction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
 	 *
99 99
 	 * @param $type
100 100
 	 *
101
-	 * @return array
101
+	 * @return string[]
102 102
 	 */
103 103
 	protected function getDefaultParameters( $type ) {
104 104
 		return [ 'distance', 'unit', 'decimals' ];
Please login to merge, or discard this patch.
src/MediaWiki/ParserHooks/FindDestinationFunction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
 	 *
112 112
 	 * @see ParserHook::getDefaultParameters
113 113
 	 *
114
-	 * @return array
114
+	 * @return string[]
115 115
 	 */
116 116
 	protected function getDefaultParameters( $type ) {
117 117
 		return [ 'location', 'bearing', 'distance' ];
Please login to merge, or discard this patch.
src/MediaWiki/ParserHooks/GeocodeFunction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
 	 *
105 105
 	 * @see ParserHook::getDefaultParameters
106 106
 	 *
107
-	 * @return array
107
+	 * @return string[]
108 108
 	 */
109 109
 	protected function getDefaultParameters( $type ) {
110 110
 		return [ 'location' ];
Please login to merge, or discard this patch.
src/MediaWiki/ParserHooks/GeoDistanceFunction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
 	 *
114 114
 	 * @param $type
115 115
 	 *
116
-	 * @return array
116
+	 * @return string[]
117 117
 	 */
118 118
 	protected function getDefaultParameters( $type ) {
119 119
 		return [ 'location1', 'location2', 'unit', 'decimals' ];
Please login to merge, or discard this patch.
src/MediaWiki/ParserHooks/MapsDocFunction.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -131,8 +131,6 @@  discard block
 block discarded – undo
131 131
 	/**
132 132
 	 * Message function that takes into account the language parameter.
133 133
 	 *
134
-	 * @param string $key
135
-	 * @param ... $args
136 134
 	 *
137 135
 	 * @return string
138 136
 	 */
@@ -193,7 +191,7 @@  discard block
 block discarded – undo
193 191
 	 *
194 192
 	 * @see ParserHook::getDefaultParameters
195 193
 	 *
196
-	 * @return array
194
+	 * @return string[]
197 195
 	 */
198 196
 	protected function getDefaultParameters( $type ) {
199 197
 		return [ 'service', 'language' ];
Please login to merge, or discard this patch.
src/SemanticMW/DataValues/CoordinateValue.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -63,6 +63,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 );
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use InvalidArgumentException;
8 8
 use Maps\MapsFactory;
9 9
 use Maps\Presentation\MapsDistanceParser;
10
-use phpDocumentor\Reflection\Types\Parent_;
11 10
 use SMW\Query\Language\Description;
12 11
 use SMW\Query\Language\ThingDescription;
13 12
 use SMW\Query\QueryComparator;
Please login to merge, or discard this patch.
src/SemanticMW/ValueDescriptions/AreaDescription.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Presentation/WikitextParsers/ImageOverlayParser.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.