Completed
Push — assertsame ( 61a0e3 )
by Jeroen De
05:03 queued 01:29
created
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/parsers/ImageOverlayParser.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 	 *
22 22
 	 * @param string $value
23 23
 	 *
24
-	 * @return WmsOverlay
24
+	 * @return ImageOverlay
25 25
 	 * @throws ParseException
26 26
 	 */
27 27
 	protected function stringParse( $value ) {
Please login to merge, or discard this patch.
includes/ServiceParam.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 	 * @param IParamDefinition[] $definitions
52 52
 	 * @param IParam[] $params
53 53
 	 *
54
-	 * @return mixed
54
+	 * @return string
55 55
 	 */
56 56
 	protected function formatValue( $value, IParam $param, array &$definitions, array $params ) {
57 57
 		// Make sure the service is valid.
Please login to merge, or discard this patch.
includes/parsers/LocationParser.php 2 patches
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -83,6 +83,11 @@
 block discarded – undo
83 83
 		$location->setLink( $this->getExpandedLink( $link ) );
84 84
 	}
85 85
 
86
+	/**
87
+	 * @param string $link
88
+	 *
89
+	 * @return string
90
+	 */
86 91
 	private function getExpandedLink( $link ) {
87 92
 		if ( filter_var( $link , FILTER_VALIDATE_URL , FILTER_FLAG_SCHEME_REQUIRED ) ) {
88 93
 			return $link;
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use DataValues\Geo\Parsers\GeoCoordinateParser;
6 6
 use DataValues\Geo\Values\LatLongValue;
7 7
 use Maps\Elements\Location;
8
-use MWException;
9 8
 use Title;
10 9
 use ValueParsers\ParserOptions;
11 10
 use ValueParsers\ParseException;
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.
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.
includes/Maps_Mapper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 	/**
68 68
 	 * This function returns the definitions for the parameters used by every map feature.
69 69
 	 *
70
-	 * @return array
70
+	 * @return ParamProcessor\IParamDefinition[]
71 71
 	 */
72 72
 	public static function getCommonParameters() {
73 73
 		global $egMapsAvailableGeoServices, $egMapsDefaultGeoService, $egMapsMapWidth, $egMapsMapHeight, $egMapsDefaultService;
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
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
 	 * 
76 76
 	 * @since 0.7
77 77
 	 * 
78
-	 * @return array
78
+	 * @return string[]
79 79
 	 */
80 80
 	public static function getOverrides() {
81 81
 		return [ 'googlemaps3' ];
Please login to merge, or discard this patch.
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.