Completed
Push — master ( 264305...76f9d5 )
by Jeroen De
03:12 queued 03:06
created
includes/parserhooks/Maps_Geocode.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
 	 *
92 92
 	 * @param $type
93 93
 	 * 
94
-	 * @return array
94
+	 * @return string[]
95 95
 	 */
96 96
 	protected function getDefaultParameters( $type ) {
97 97
 		return array( 'location1', 'location2', 'unit', 'decimals' );
Please login to merge, or discard this patch.
includes/geocoders/Maps_GoogleGeocoder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
 	 *
92 92
 	 * @param $type
93 93
 	 * 
94
-	 * @return array
94
+	 * @return string[]
95 95
 	 */
96 96
 	protected function getDefaultParameters( $type ) {
97 97
 		return array( 'location1', 'location2', 'unit', 'decimals' );
Please login to merge, or discard this patch.
src/Elements/Location.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@
 block discarded – undo
232 232
 	 *
233 233
 	 * @since 2.0
234 234
 	 *
235
-	 * @return string
235
+	 * @return boolean
236 236
 	 */
237 237
 	public function hasGroup() {
238 238
 		return $this->group !== '';
Please login to merge, or discard this patch.
includes/Maps_MappingService.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	 * @since 0.6.3
72 72
 	 *
73 73
 	 * @param string $serviceName
74
-	 * @param array $aliases
74
+	 * @param string[] $aliases
75 75
 	 */
76 76
 	public function __construct( $serviceName, array $aliases = [] ) {
77 77
 		$this->serviceName = $serviceName;
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 	 *
233 233
 	 * @since 0.7.3
234 234
 	 *
235
-	 * @param mixed $modules Array of string or string
235
+	 * @param string[] $modules Array of string or string
236 236
 	 */
237 237
 	public function addResourceModules( $modules ) {
238 238
 		$this->resourceModules = array_merge( $this->resourceModules, (array)$modules );
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
@@ -274,6 +274,10 @@
 block discarded – undo
274 274
 		}
275 275
 	}
276 276
 
277
+	/**
278
+	 * @param string $iconUrl
279
+	 * @param string $visitedIconUrl
280
+	 */
277 281
 	private function getJsonForStaticLocations( array $staticLocations, array $params, $iconUrl, $visitedIconUrl ) {
278 282
 		/**
279 283
 		 * @var Parser $wgParser
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
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 	/**
292 292
 	 * @since 2.0
293 293
 	 *
294
-	 * @return array
294
+	 * @return Element[]
295 295
 	 */
296 296
 	public function getShapes() {
297 297
 		$this->findShapes();
@@ -577,7 +577,7 @@  discard block
 block discarded – undo
577 577
 	 *
578 578
 	 * @since 0.7.3
579 579
 	 *
580
-	 * @param array $row
580
+	 * @param SMWResultArray[] $row
581 581
 	 *
582 582
 	 * @return string
583 583
 	 */
Please login to merge, or discard this patch.
SemanticMaps/src/SM_GeoCoordsValue.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -103,6 +103,11 @@  discard block
 block discarded – undo
103 103
 		}
104 104
 	}
105 105
 
106
+	/**
107
+	 * @param string|false $distance
108
+	 *
109
+	 * @return string
110
+	 */
106 111
 	protected function parserDistance( $distance ) {
107 112
 		if ( $distance !== false ) {
108 113
 			$distance = substr( trim( $distance ), 0, -1 );
@@ -120,6 +125,7 @@  discard block
 block discarded – undo
120 125
 	 * @see SMWDataValue::parseUserValue
121 126
 	 *
122 127
 	 * @since 0.6
128
+	 * @param string $value
123 129
 	 */
124 130
 	protected function parseUserValue( $value ) {
125 131
 		if ( !is_string( $value ) ) {
@@ -144,6 +150,9 @@  discard block
 block discarded – undo
144 150
 		return [ $distance, $comparator ];
145 151
 	}
146 152
 
153
+	/**
154
+	 * @param string $value
155
+	 */
147 156
 	protected function findValueParts( $value ) {
148 157
 		$parts = explode( '(', $value );
149 158
 
Please login to merge, or discard this patch.
SemanticMaps/src/SM_GeoCoordsValueDescription.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 	 * @param array $fieldNames
45 45
 	 * @param DatabaseBase $dbs
46 46
 	 * 
47
-	 * @return boolean
47
+	 * @return false|string
48 48
 	 */
49 49
 	public function getSQLCondition( $tableName, array $fieldNames, DatabaseBase $dbs ) {
50 50
 		$dataItem = $this->getDataItem();
Please login to merge, or discard this patch.
tests/Unit/Elements/PolygonTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -50,6 +50,10 @@
 block discarded – undo
50 50
 		$this->assertHasJsonKeyWithValue( $polygon, 'fillOpacity', '0.42' );
51 51
 	}
52 52
 
53
+	/**
54
+	 * @param string $key
55
+	 * @param string $value
56
+	 */
53 57
 	protected function assertHasJsonKeyWithValue( Polygon $polygon, $key, $value ) {
54 58
 		$json = $polygon->getJSONObject();
55 59
 
Please login to merge, or discard this patch.