Completed
Push — master ( 259aca...c91093 )
by
unknown
06:39
created
repo/tests/phpunit/includes/NewItem.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -106,6 +106,8 @@  discard block
 block discarded – undo
106 106
 
107 107
 	/**
108 108
 	 * @see andLabel
109
+	 * @param string $languageCode
110
+	 * @param string $label
109 111
 	 */
110 112
 	public static function withLabel( $languageCode, $label ) {
111 113
 		return ( new self() )->andLabel( $languageCode, $label );
@@ -125,6 +127,8 @@  discard block
 block discarded – undo
125 127
 
126 128
 	/**
127 129
 	 * @see andDescription
130
+	 * @param string $languageCode
131
+	 * @param string $description
128 132
 	 */
129 133
 	public static function withDescription( $languageCode, $description ) {
130 134
 		return ( new self() )->andDescription( $languageCode, $description );
@@ -144,6 +148,8 @@  discard block
 block discarded – undo
144 148
 
145 149
 	/**
146 150
 	 * @see andAliases
151
+	 * @param string $languageCode
152
+	 * @param string[] $aliases
147 153
 	 */
148 154
 	public static function withAliases( $languageCode, $aliases ) {
149 155
 		return ( new self() )->andAliases( $languageCode, $aliases );
@@ -163,6 +169,8 @@  discard block
 block discarded – undo
163 169
 
164 170
 	/**
165 171
 	 * @see andSiteLink
172
+	 * @param string $siteId
173
+	 * @param string $pageName
166 174
 	 */
167 175
 	public static function withSiteLink( $siteId, $pageName, $badges = null ) {
168 176
 		return ( new self() )->andSiteLink( $siteId, $pageName, $badges );
@@ -189,6 +197,7 @@  discard block
 block discarded – undo
189 197
 
190 198
 	/**
191 199
 	 * @see andStatement
200
+	 * @param Statement $statement
192 201
 	 */
193 202
 	public static function withStatement( $statement ) {
194 203
 		return ( new self() )->andStatement( $statement );
Please login to merge, or discard this patch.
repo/includes/Interactors/ItemMergeInteractor.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
 	 * @param string|null $summary
253 253
 	 * @param bool $bot
254 254
 	 *
255
-	 * @return array A list of exactly two EntityRevision objects. The first one represents the
255
+	 * @return \Wikibase\Lib\Store\EntityRevision[] A list of exactly two EntityRevision objects. The first one represents the
256 256
 	 *  modified source item, the second one represents the modified target item.
257 257
 	 */
258 258
 	private function attemptSaveMerge( Item $fromItem, Item $toItem, $summary, $bot ) {
@@ -265,6 +265,9 @@  discard block
 block discarded – undo
265 265
 		return [ $fromRev, $toRev ];
266 266
 	}
267 267
 
268
+	/**
269
+	 * @param boolean $bot
270
+	 */
268 271
 	private function saveItem( Item $item, FormatableSummary $summary, $bot ) {
269 272
 		// Given we already check all constraints in ChangeOpsMerge, it's
270 273
 		// fine to ignore them here. This is also needed to not run into
Please login to merge, or discard this patch.
repo/tests/phpunit/maintenance/DumpJsonTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -166,6 +166,9 @@
 block discarded – undo
166 166
 		return $mockDataTypeLookup;
167 167
 	}
168 168
 
169
+	/**
170
+	 * @param string $string
171
+	 */
169 172
 	private function fixLineEndings( $string ) {
170 173
 		return preg_replace( '~(*BSR_ANYCRLF)\R~', "\n", $string );
171 174
 	}
Please login to merge, or discard this patch.
repo/tests/phpunit/maintenance/DumpRdfTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -166,6 +166,9 @@
 block discarded – undo
166 166
 		return $mockDataTypeLookup;
167 167
 	}
168 168
 
169
+	/**
170
+	 * @param string $string
171
+	 */
169 172
 	private function fixLineEndings( $string ) {
170 173
 		return preg_replace( '~(*BSR_ANYCRLF)\R~', "\n", $string );
171 174
 	}
Please login to merge, or discard this patch.
lib/includes/Store/HashSiteLinkStore.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@
 block discarded – undo
214 214
 	 * @param string $pageTitle
215 215
 	 *
216 216
 	 * @throws InvalidArgumentException if a parameter does not have the expected type
217
-	 * @return EntityId|null
217
+	 * @return ItemId|null
218 218
 	 */
219 219
 	public function getEntityIdForLinkedTitle( $globalSiteId, $pageTitle ) {
220 220
 		return $this->getItemIdForLink( $globalSiteId, $pageTitle );
Please login to merge, or discard this patch.
lib/includes/Store/Sql/SiteLinkTable.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@
 block discarded – undo
214 214
 	 * @param string $pageTitle
215 215
 	 *
216 216
 	 * @throws InvalidArgumentException if a parameter does not have the expected type
217
-	 * @return EntityId|null
217
+	 * @return ItemId|null
218 218
 	 */
219 219
 	public function getEntityIdForLinkedTitle( $globalSiteId, $pageTitle ) {
220 220
 		return $this->getItemIdForLink( $globalSiteId, $pageTitle );
Please login to merge, or discard this patch.
lib/includes/Store/Sql/PrefetchingWikiPageEntityMetaDataAccessor.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -236,6 +236,9 @@
 block discarded – undo
236 236
 		return $revisionIds;
237 237
 	}
238 238
 
239
+	/**
240
+	 * @param string $mode
241
+	 */
239 242
 	private function doFetch( $mode ) {
240 243
 		if ( empty( $this->toFetch ) ) {
241 244
 			return;
Please login to merge, or discard this patch.
repo/includes/Dumpers/RdfDumpGenerator.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -180,6 +180,9 @@
 block discarded – undo
180 180
 		$this->timestamp = (int)$timestamp;
181 181
 	}
182 182
 
183
+	/**
184
+	 * @param string $name
185
+	 */
183 186
 	private static function getRdfWriter( $name, BNodeLabeler $labeler = null ) {
184 187
 		$factory = new RdfWriterFactory();
185 188
 		$format = $factory->getFormatName( $name );
Please login to merge, or discard this patch.
repo/maintenance/DumpEntities.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
 	 * @param string[] $entityTypes
225 225
 	 * @param ExceptionHandler|null $exceptionReporter
226 226
 	 *
227
-	 * @return EntityIdReader|SqlEntityIdPager a stream of EntityId objects
227
+	 * @return EntityIdPager a stream of EntityId objects
228 228
 	 */
229 229
 	private function makeIdStream( array $entityTypes, ExceptionHandler $exceptionReporter = null ) {
230 230
 		$listFile = $this->getOption( 'list-file' );
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 	/**
242 242
 	 * Returns EntityIdPager::NO_REDIRECTS.
243 243
 	 *
244
-	 * @return mixed a EntityIdPager::XXX_REDIRECTS constant
244
+	 * @return string a EntityIdPager::XXX_REDIRECTS constant
245 245
 	 */
246 246
 	protected function getRedirectMode() {
247 247
 		return EntityIdPager::NO_REDIRECTS;
Please login to merge, or discard this patch.