Completed
Pull Request — master (#105)
by mw
05:32 queued 02:58
created
includes/Geocoders.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 	 * @param string|false $mappingService
125 125
 	 * @param boolean $checkForCoords
126 126
 	 *
127
-	 * @return LatLongValue|false
127
+	 * @return LatLongValue
128 128
 	 */
129 129
 	public static function attemptToGeocode( $coordsOrAddress, $geoservice = '', $mappingService = false, $checkForCoords = true ) {
130 130
 		if ( $checkForCoords ) {
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 	 * @param string $geoService
201 201
 	 * @param string|false $mappingService
202 202
 	 * 
203
-	 * @return LatLongValue|false
203
+	 * @return LatLongValue
204 204
 	 * @throws MWException
205 205
 	 */
206 206
 	public static function geocode( $address, $geoService = '', $mappingService = false ) {
@@ -240,6 +240,9 @@  discard block
 block discarded – undo
240 240
 		return $coordinates;
241 241
 	}
242 242
 
243
+	/**
244
+	 * @param string $address
245
+	 */
243 246
 	private static function getGeocoded( Geocoder $geocoder, $address ) {
244 247
 		$coordinates = self::getGeocodedAsArray( $geocoder, $address );
245 248
 
Please login to merge, or discard this patch.
includes/geocoders/Maps_GeonamesGeocoder.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,6 @@
 block discarded – undo
47 47
 	 * 
48 48
 	 * @since 1.0
49 49
 	 * 
50
-	 * @param string $address
51 50
 	 * 
52 51
 	 * @return array
53 52
 	 */		
Please login to merge, or discard this patch.
includes/geocoders/Maps_GoogleGeocoder.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,6 @@  discard block
 block discarded – undo
43 43
 	 * 
44 44
 	 * @since 0.7
45 45
 	 * 
46
-	 * @param string $address
47 46
 	 * 
48 47
 	 * @return array
49 48
 	 */		
@@ -65,7 +64,7 @@  discard block
 block discarded – undo
65 64
 	 * 
66 65
 	 * @since 0.7
67 66
 	 * 
68
-	 * @return array
67
+	 * @return string[]
69 68
 	 */
70 69
 	public static function getOverrides() {
71 70
 		return array( 'googlemaps3' );
Please login to merge, or discard this patch.
includes/iMappingService.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -25,6 +25,7 @@  discard block
 block discarded – undo
25 25
 	 * @since 0.6.3
26 26
 	 * 
27 27
 	 * @param mixed $parserOrOut
28
+	 * @return void
28 29
 	 */
29 30
 	public function addDependencies( &$parserOrOut );
30 31
 	
@@ -46,6 +47,7 @@  discard block
 block discarded – undo
46 47
 	 * 
47 48
 	 * @param string $featureName
48 49
 	 * @param string $handlingClass
50
+	 * @return void
49 51
 	 */	
50 52
 	public function addFeature( $featureName, $handlingClass );
51 53
 	
Please login to merge, or discard this patch.
includes/Maps_DisplayMapRenderer.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 use Maps\Element;
3
-use Maps\Elements\Line;
4 3
 use Maps\Elements\Location;
5 4
 
6 5
 /**
Please login to merge, or discard this patch.
includes/Maps_DistanceParser.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
152 152
 	 * 
153 153
 	 * @since 0.6.5
154 154
 	 * 
155
-	 * @param $distance String
155
+	 * @param string $distance String
156 156
 	 * 
157 157
 	 * @return string
158 158
 	 */
Please login to merge, or discard this patch.
includes/Maps_Layer.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 	 *
128 128
 	 * @since 3.0
129 129
 	 *
130
-	 * @return string|null
130
+	 * @return string
131 131
 	 */
132 132
 	public function getName() {
133 133
 		return $this->name;
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 	 *
221 221
 	 * @since 3.0 (and before as abstract function since 0.7.2)
222 222
 	 *
223
-	 * @return array
223
+	 * @return ParamProcessor\IParamDefinition[]
224 224
 	 */
225 225
 	protected function getParameterDefinitions() {
226 226
 		$params = array();
@@ -269,7 +269,6 @@  discard block
 block discarded – undo
269 269
 	 *
270 270
 	 * @since 3.0
271 271
 	 *
272
-	 * @param string $name Name of the property value
273 272
 	 * @param Parser $parser
274 273
 	 *
275 274
 	 * @return array
Please login to merge, or discard this patch.
includes/Maps_MappingService.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 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 = array() ) {
77 77
 		$this->serviceName = $serviceName;
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
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 	 *
28 28
 	 * @since 2.0
29 29
 	 *
30
-	 * @return array
30
+	 * @return string[]
31 31
 	 */
32 32
 	protected function getNames() {
33 33
 		return array( $this->getName(), 'display_point', 'display_points', 'display_line' );
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 	 * 
168 168
 	 * @since 0.7
169 169
 	 * 
170
-	 * @return array
170
+	 * @return string[]
171 171
 	 */
172 172
 	protected function getDefaultParameters( $type ) {
173 173
 		return array( 'coordinates' );
Please login to merge, or discard this patch.