Completed
Push — move ( f6d739...b63aae )
by Jeroen De
08:59 queued 01:04
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.
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.
includes/Maps_Mapper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 	/**
69 69
 	 * This function returns the definitions for the parameters used by every map feature.
70 70
 	 *
71
-	 * @return array
71
+	 * @return ParamProcessor\IParamDefinition[]
72 72
 	 */
73 73
 	public static function getCommonParameters() {
74 74
 		$params = [];
Please login to merge, or discard this patch.
includes/parsers/ImageOverlayParser.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@
 block discarded – undo
21 21
 
22 22
 	private $geocoder;
23 23
 
24
+	/**
25
+	 * @param \Jeroen\SimpleGeocoder\Geocoders\Decorators\CoordinateFriendlyGeocoder $geocoder
26
+	 */
24 27
 	public function __construct( $geocoder = null ) {
25 28
 		$this->geocoder = $geocoder instanceof Geocoder ? $geocoder : MapsFactory::newDefault()->newGeocoder();
26 29
 	}
Please login to merge, or discard this patch.
includes/Maps_MappingService.php 1 patch
Doc Comments   +4 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,7 @@  discard block
 block discarded – undo
72 72
 
73 73
 	/**
74 74
 	 * @since 0.6.3
75
+	 * @param string $featureName
75 76
 	 */
76 77
 	public function addFeature( $featureName, $handlingClass ) {
77 78
 		$this->features[$featureName] = $handlingClass;
@@ -180,6 +181,7 @@  discard block
 block discarded – undo
180 181
 
181 182
 	/**
182 183
 	 * @since 0.6.3
184
+	 * @param string $alias
183 185
 	 */
184 186
 	public function hasAlias( $alias ) {
185 187
 		return in_array( $alias, $this->aliases );
@@ -190,7 +192,7 @@  discard block
 block discarded – undo
190 192
 	 *
191 193
 	 * @since 0.7.3
192 194
 	 *
193
-	 * @param mixed $modules Array of string or string
195
+	 * @param string[] $modules Array of string or string
194 196
 	 */
195 197
 	public function addResourceModules( $modules ) {
196 198
 		$this->resourceModules = array_merge( $this->resourceModules, (array)$modules );
Please login to merge, or discard this patch.
src/Parsers/JsonFileParser.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -19,6 +19,9 @@
 block discarded – undo
19 19
 	private $pageContentFetcher;
20 20
 	private $defaultNamespace;
21 21
 
22
+	/**
23
+	 * @param FileFetcher $fileFetcher
24
+	 */
22 25
 	public function __construct( $fileFetcher = null, PageContentFetcher $pageContentFetcher = null ) {
23 26
 		$this->fileFetcher = $fileFetcher instanceof FileFetcher
24 27
 			? $fileFetcher : MapsFactory::newDefault()->getFileFetcher();
Please login to merge, or discard this patch.
src/MediaWiki/ParserHooks/CoordinatesFunction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
 	 *
94 94
 	 * @see ParserHook::getDefaultParameters
95 95
 	 *
96
-	 * @return array
96
+	 * @return string[]
97 97
 	 */
98 98
 	protected function getDefaultParameters( $type ) {
99 99
 		return [ 'location', 'format', 'directional' ];
Please login to merge, or discard this patch.
src/MediaWiki/ParserHooks/DistanceFunction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
 	 *
99 99
 	 * @param $type
100 100
 	 *
101
-	 * @return array
101
+	 * @return string[]
102 102
 	 */
103 103
 	protected function getDefaultParameters( $type ) {
104 104
 		return [ 'distance', 'unit', 'decimals' ];
Please login to merge, or discard this patch.
src/MediaWiki/ParserHooks/FindDestinationFunction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
 	 *
112 112
 	 * @see ParserHook::getDefaultParameters
113 113
 	 *
114
-	 * @return array
114
+	 * @return string[]
115 115
 	 */
116 116
 	protected function getDefaultParameters( $type ) {
117 117
 		return [ 'location', 'bearing', 'distance' ];
Please login to merge, or discard this patch.