Completed
Push — independent-tests ( 271ef5 )
by Jeroen De
06:48
created
includes/Maps_DisplayMapRenderer.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -148,6 +148,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
SemanticMaps/src/queryprinters/SM_QueryHandler.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 	}
240 240
 
241 241
 	/**
242
-	 * @return array
242
+	 * @return Element[]
243 243
 	 */
244 244
 	public function getShapes() {
245 245
 		$this->findShapes();
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
 	/**
516 516
 	 * Get the icon for a row.
517 517
 	 *
518
-	 * @param array $row
518
+	 * @param SMWResultArray[] $row
519 519
 	 *
520 520
 	 * @return string
521 521
 	 */
Please login to merge, or discard this patch.
src/Semantic/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.
includes/parserhooks/Maps_DisplayMap.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	 *
63 63
 	 * @since 2.0
64 64
 	 *
65
-	 * @return array
65
+	 * @return string[]
66 66
 	 */
67 67
 	protected function getNames() {
68 68
 		return [ $this->getName(), 'display_point', 'display_points', 'display_line' ];
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 	 *
115 115
 	 * @since 0.7
116 116
 	 *
117
-	 * @return array
117
+	 * @return string[]
118 118
 	 */
119 119
 	protected function getDefaultParameters( $type ) {
120 120
 		return [ 'coordinates' ];
Please login to merge, or discard this patch.
includes/parserhooks/Maps_MapsDoc.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -138,8 +138,6 @@  discard block
 block discarded – undo
138 138
 	 *
139 139
 	 * @since 1.0.1
140 140
 	 *
141
-	 * @param string $key
142
-	 * @param ... $args
143 141
 	 *
144 142
 	 * @return string
145 143
 	 */
@@ -208,7 +206,7 @@  discard block
 block discarded – undo
208 206
 	 *
209 207
 	 * @since 1.0
210 208
 	 *
211
-	 * @return array
209
+	 * @return string[]
212 210
 	 */
213 211
 	protected function getDefaultParameters( $type ) {
214 212
 		return [ 'service', 'language' ];
Please login to merge, or discard this patch.
SemanticMaps/src/queryprinters/SM_MapPrinter.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -187,6 +187,10 @@
 block discarded – undo
187 187
 		return $location->getJSONObject();
188 188
 	}
189 189
 
190
+	/**
191
+	 * @param string $iconUrl
192
+	 * @param string $visitedIconUrl
193
+	 */
190 194
 	private function getJsonForStaticLocations( array $staticLocations, array $params, $iconUrl, $visitedIconUrl ) {
191 195
 		/**
192 196
 		 * @var Parser $wgParser
Please login to merge, or discard this patch.
src/Semantic/DataValues/CoordinateValue.php 1 patch
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.
includes/Maps_MappingService.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
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,8 @@  discard block
 block discarded – undo
72 72
 
73 73
 	/**
74 74
 	 * @since 0.6.3
75
+	 * @param string $featureName
76
+	 * @param string $handlingClass
75 77
 	 */
76 78
 	public function addFeature( $featureName, $handlingClass ) {
77 79
 		$this->features[$featureName] = $handlingClass;
@@ -187,6 +189,7 @@  discard block
 block discarded – undo
187 189
 
188 190
 	/**
189 191
 	 * @since 0.6.3
192
+	 * @param string $alias
190 193
 	 */
191 194
 	public function hasAlias( $alias ) {
192 195
 		return in_array( $alias, $this->aliases );
@@ -197,7 +200,7 @@  discard block
 block discarded – undo
197 200
 	 *
198 201
 	 * @since 0.7.3
199 202
 	 *
200
-	 * @param mixed $modules Array of string or string
203
+	 * @param string[] $modules Array of string or string
201 204
 	 */
202 205
 	public function addResourceModules( $modules ) {
203 206
 		$this->resourceModules = array_merge( $this->resourceModules, (array)$modules );
Please login to merge, or discard this patch.
includes/parsers/LocationParser.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -108,6 +108,11 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.