Completed
Push — moarcs ( 69dab6 )
by Jeroen De
03:15
created
src/Semantic/DataValues/CoordinateValue.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -97,6 +97,11 @@  discard block
 block discarded – undo
97 97
 		}
98 98
 	}
99 99
 
100
+	/**
101
+	 * @param string|false $distance
102
+	 *
103
+	 * @return string
104
+	 */
100 105
 	private function parserDistance( $distance ) {
101 106
 		if ( $distance !== false ) {
102 107
 			$distance = substr( trim( $distance ), 0, -1 );
@@ -112,6 +117,7 @@  discard block
 block discarded – undo
112 117
 
113 118
 	/**
114 119
 	 * @see SMWDataValue::parseUserValue
120
+	 * @param string $value
115 121
 	 */
116 122
 	protected function parseUserValue( $value ) {
117 123
 		if ( !is_string( $value ) ) {
@@ -136,6 +142,9 @@  discard block
 block discarded – undo
136 142
 		return [ $distance, $comparator ];
137 143
 	}
138 144
 
145
+	/**
146
+	 * @param string $value
147
+	 */
139 148
 	private function findValueParts( $value ) {
140 149
 		$parts = explode( '(', $value );
141 150
 
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/Geocoders.php 1 patch
Doc Comments   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 	 * @param string $geoService
125 125
 	 * @param boolean $checkForCoords
126 126
 	 *
127
-	 * @return LatLongValue|false
127
+	 * @return LatLongValue
128 128
 	 */
129 129
 	public static function attemptToGeocode( $coordsOrAddress, $geoService = '', $checkForCoords = true ) {
130 130
 		if ( $checkForCoords ) {
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 	 * @param string $address
151 151
 	 * @param string $geoService
152 152
 	 *
153
-	 * @return LatLongValue|false
153
+	 * @return LatLongValue
154 154
 	 * @throws MWException
155 155
 	 */
156 156
 	public static function geocode( $address, $geoService = '' ) {
@@ -190,6 +190,9 @@  discard block
 block discarded – undo
190 190
 		return $coordinates;
191 191
 	}
192 192
 
193
+	/**
194
+	 * @param string $address
195
+	 */
193 196
 	private static function getGeocoded( Geocoder $geocoder, $address ) {
194 197
 		$coordinates = self::getGeocodedAsArray( $geocoder, $address );
195 198
 
@@ -260,7 +263,7 @@  discard block
 block discarded – undo
260 263
 	 * @since 0.7
261 264
 	 *
262 265
 	 * @param string $geocoderIdentifier
263
-	 * @param string|\Maps\Geocoders\Geocoder $geocoder
266
+	 * @param string $geocoder
264 267
 	 */
265 268
 	public static function registerGeocoder( $geocoderIdentifier, $geocoder ) {
266 269
 		self::$registeredGeocoders[$geocoderIdentifier] = $geocoder;
@@ -331,7 +334,7 @@  discard block
 block discarded – undo
331 334
 	 *
332 335
 	 * @param string $geocoderIdentifier
333 336
 	 *
334
-	 * @return string|bool
337
+	 * @return string
335 338
 	 * @throws MWException
336 339
 	 */
337 340
 	private static function getValidGeocoderIdentifier( $geocoderIdentifier ) {
Please login to merge, or discard this patch.
includes/parsers/LineParser.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,6 +128,9 @@  discard block
 block discarded – undo
128 128
 		}
129 129
 	}
130 130
 
131
+	/**
132
+	 * @param string $link
133
+	 */
131 134
 	protected function setLinkFromParameter( Line &$line , $link ) {
132 135
 		if ( filter_var( $link , FILTER_VALIDATE_URL , FILTER_FLAG_SCHEME_REQUIRED ) ) {
133 136
 			$line->setLink( $link );
@@ -141,7 +144,7 @@  discard block
 block discarded – undo
141 144
 	 * Checks if a string is prefixed with link:
142 145
 	 * @static
143 146
 	 * @param $link
144
-	 * @return bool|string
147
+	 * @return string|false
145 148
 	 * @since 2.0
146 149
 	 */
147 150
 	private function isLinkParameter( $link ) {
Please login to merge, or discard this patch.