Completed
Pull Request — master (#12)
by
unknown
11:14 queued 04:45
created
repo/tests/phpunit/includes/Store/Sql/WikiPageEntityMetaDataLookupTest.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -87,6 +87,7 @@  discard block
 block discarded – undo
87 87
 	}
88 88
 
89 89
 	/**
90
+	 * @param EntityNamespaceLookup $nsLookup
90 91
 	 * @return WikiPageEntityMetaDataLookup
91 92
 	 */
92 93
 	private function getWikiPageEntityMetaDataLookup( $nsLookup = null ) {
@@ -106,6 +107,9 @@  discard block
 block discarded – undo
106 107
 		);
107 108
 	}
108 109
 
110
+	/**
111
+	 * @param EntityNamespaceLookup $namespaceLookup
112
+	 */
109 113
 	private function newMetaDataLookupForSourceBasedFederation( $namespaceLookup = null ) {
110 114
 		if ( $namespaceLookup === null ) {
111 115
 			$namespaceLookup = $this->getEntityNamespaceLookup();
@@ -182,6 +186,11 @@  discard block
 block discarded – undo
182 186
 		return $lookup;
183 187
 	}
184 188
 
189
+	/**
190
+	 * @param integer $selectCount
191
+	 * @param integer $selectRowCount
192
+	 * @param integer $getConnectionCount
193
+	 */
185 194
 	private function newLookupWithLaggedConnectionForSourceBasedFederation( $selectCount, $selectRowCount, $getConnectionCount ) {
186 195
 		$nsLookup = $this->getEntityNamespaceLookup();
187 196
 		$lookup = $this->getMockBuilder( WikiPageEntityMetaDataLookup::class )
Please login to merge, or discard this patch.
repo/tests/phpunit/includes/Store/WikiPageEntityRevisionLookupTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -433,6 +433,9 @@
 block discarded – undo
433 433
 			)->map();
434 434
 	}
435 435
 
436
+	/**
437
+	 * @param string $idString
438
+	 */
436 439
 	private function getMockEntityId( $idString ) {
437 440
 		$entityId = $this->createMock( EntityId::class );
438 441
 		$entityId->method( '__toString' )->willReturn( $idString );
Please login to merge, or discard this patch.
includes/ChangeOp/Deserialization/AliasChangeOpDeserializationTester.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
 	}
87 87
 
88 88
 	/**
89
-	 * @return AliasesProvider|EntityDocument
89
+	 * @return EntityDocument
90 90
 	 */
91 91
 	abstract protected function getEntity();
92 92
 
Please login to merge, or discard this patch.
ChangeOp/Deserialization/DescriptionsChangeOpDeserializationTester.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
 
69 69
 	/**
70
-	 * @return DescriptionsProvider|EntityDocument
70
+	 * @return EntityDocument
71 71
 	 */
72 72
 	abstract protected function getEntity();
73 73
 
Please login to merge, or discard this patch.
includes/ChangeOp/Deserialization/LabelsChangeOpDeserializationTester.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 	}
66 66
 
67 67
 	/**
68
-	 * @return LabelsProvider|EntityDocument
68
+	 * @return EntityDocument
69 69
 	 */
70 70
 	abstract protected function getEntity();
71 71
 
Please login to merge, or discard this patch.
lib/includes/SimpleCacheWithBagOStuff.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 	 * Fetches a value from the cache.
56 56
 	 *
57 57
 	 * @param string $key The unique key of this item in the cache.
58
-	 * @param mixed $default Default value to return if the key does not exist.
58
+	 * @param string $default Default value to return if the key does not exist.
59 59
 	 *
60 60
 	 * @return mixed The value of the item from the cache, or $default in case of cache miss.
61 61
 	 *
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
 	 * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
78 78
 	 *
79 79
 	 * @param string $key The key of the item to store.
80
-	 * @param mixed $value The value of the item to store, must be serializable.
81
-	 * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
80
+	 * @param string $value The value of the item to store, must be serializable.
81
+	 * @param integer $ttl Optional. The TTL value of this item. If no value is sent and
82 82
 	 *                                      the driver supports TTL then the library may set a default value
83 83
 	 *                                      for it or let the driver take care of that.
84 84
 	 *
@@ -125,8 +125,8 @@  discard block
 block discarded – undo
125 125
 	/**
126 126
 	 * Obtains multiple cache items by their unique keys.
127 127
 	 *
128
-	 * @param iterable $keys A list of keys that can obtained in a single operation.
129
-	 * @param mixed $default Default value to return for keys that do not exist.
128
+	 * @param string[] $keys A list of keys that can obtained in a single operation.
129
+	 * @param string $default Default value to return for keys that do not exist.
130 130
 	 *
131 131
 	 * @return iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
132 132
 	 *
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 	 * Persists a set of key => value pairs in the cache, with an optional TTL.
167 167
 	 *
168 168
 	 * @param iterable $values A list of key => value pairs for a multiple-set operation.
169
-	 * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
169
+	 * @param integer $ttl Optional. The TTL value of this item. If no value is sent and
170 170
 	 *                                       the driver supports TTL then the library may set a default value
171 171
 	 *                                       for it or let the driver take care of that.
172 172
 	 *
Please login to merge, or discard this patch.
repo/includes/Hooks/HtmlPageLinkRendererBeginHookHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -335,7 +335,7 @@
 block discarded – undo
335 335
 	 * @param Title|null $currentTitle
336 336
 	 * @param RequestContext $context
337 337
 	 *
338
-	 * @return bool
338
+	 * @return null|boolean
339 339
 	 */
340 340
 	private function shouldConvert( ?Title $currentTitle, RequestContext $context ) {
341 341
 		static $shouldConvert = null;
Please login to merge, or discard this patch.
repo/tests/phpunit/includes/Store/WikiPageEntityDataLoaderTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -190,6 +190,10 @@
 block discarded – undo
190 190
 		$this->fail( 'Should throw specific exception' );
191 191
 	}
192 192
 
193
+	/**
194
+	 * @param integer $revisionId
195
+	 * @param string $slotRole
196
+	 */
193 197
 	private function newRevisionRecord( $revisionId, $slotRole ) {
194 198
 		$revision = $this->createMock( RevisionRecord::class );
195 199
 		$revision
Please login to merge, or discard this patch.
lib/tests/phpunit/Store/Sql/SqlEntityInfoBuilderTest.php 1 patch
Doc Comments   +12 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,6 +122,9 @@  discard block
 block discarded – undo
122 122
 			$redirectRows );
123 123
 	}
124 124
 
125
+	/**
126
+	 * @param string $termType
127
+	 */
125 128
 	private function getTermRows( EntityId $id, $termType, $terms ) {
126 129
 		$rows = [];
127 130
 
@@ -169,6 +172,9 @@  discard block
 block discarded – undo
169 172
 		return $page;
170 173
 	}
171 174
 
175
+	/**
176
+	 * @param string $table
177
+	 */
172 178
 	private function insertRows( $table, array $fields, array $rows ) {
173 179
 		$dbw = wfGetDB( DB_MASTER );
174 180
 
@@ -219,7 +225,7 @@  discard block
 block discarded – undo
219 225
 	}
220 226
 
221 227
 	/**
222
-	 * @return \PHPUnit\Framework\MockObject\MockObject|CacheInterface
228
+	 * @return CacheInterface
223 229
 	 */
224 230
 	private function getCache() {
225 231
 		$mock = $this->createMock( CacheInterface::class );
@@ -307,6 +313,11 @@  discard block
 block discarded – undo
307 313
 		$this->assertFalse( $entityInfo->hasEntityInfo( $propertyId ) );
308 314
 	}
309 315
 
316
+	/**
317
+	 * @param string $termType
318
+	 * @param string $termLanguage
319
+	 * @param string $termText
320
+	 */
310 321
 	private function saveFakeForeignItemTermUsingFullItemId( ItemId $itemId, $termType, $termLanguage, $termText ) {
311 322
 		// Insert any existing data for the item ID (might collide because of insert done in setUp
312 323
 		$db = wfGetDB( DB_MASTER );
Please login to merge, or discard this patch.