Completed
Branch master (fb4c96)
by
unknown
21:11
created
includes/RevisionList.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 	/**
58 58
 	 * Get the internal type name of this list. Equal to the table name.
59 59
 	 * Override this function.
60
-	 * @return null
60
+	 * @return string
61 61
 	 */
62 62
 	public function getType() {
63 63
 		return null;
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
 
229 229
 	/**
230 230
 	 * Get the timestamp in MW 14-char form
231
-	 * @return mixed
231
+	 * @return false|string
232 232
 	 */
233 233
 	public function getTimestamp() {
234 234
 		$field = $this->getTimestampField();
Please login to merge, or discard this patch.
includes/htmlform/fields/HTMLRestrictionsField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
 
111 111
 	/**
112 112
 	 * @param MWRestrictions $value
113
-	 * @return string
113
+	 * @return OOUI\TextInputWidget
114 114
 	 */
115 115
 	public function getInputOOUI( $value ) {
116 116
 		if ( $value instanceof MWRestrictions ) {
Please login to merge, or discard this patch.
includes/htmlform/fields/HTMLTextAreaField.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -55,6 +55,9 @@
 block discarded – undo
55 55
 		) + $this->getAttributes( array( 'disabled', 'tabindex' ), array( 'tabindex' => 'tabIndex' ) ) );
56 56
 	}
57 57
 
58
+	/**
59
+	 * @param string $value
60
+	 */
58 61
 	function formatOptions( $options, $value ) {
59 62
 		$html = '';
60 63
 
Please login to merge, or discard this patch.
includes/libs/lockmanager/DBLockManager.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -112,6 +112,11 @@
 block discarded – undo
112 112
 		return $status;
113 113
 	}
114 114
 
115
+	/**
116
+	 * @param string $lockSrv
117
+	 *
118
+	 * @return StatusValue
119
+	 */
115 120
 	abstract protected function doGetLocksOnServer( $lockSrv, array $paths, $type );
116 121
 
117 122
 	protected function freeLocksOnServer( $lockSrv, array $pathsByType ) {
Please login to merge, or discard this patch.
includes/libs/rdbms/exception/DBQueryError.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -328,7 +328,7 @@
 block discarded – undo
328 328
 	/**
329 329
 	 * @param DatabaseBase $db
330 330
 	 * @param string $error
331
-	 * @param int|string $errno
331
+	 * @param integer $errno
332 332
 	 * @param string $sql
333 333
 	 * @param string $fname
334 334
 	 */
Please login to merge, or discard this patch.
includes/libs/filebackend/FileBackendStore.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -753,7 +753,7 @@  discard block
 block discarded – undo
753 753
 	/**
754 754
 	 * @see FileBackendStore::getFileSha1Base36()
755 755
 	 * @param array $params
756
-	 * @return bool|string
756
+	 * @return false|string
757 757
 	 */
758 758
 	protected function doGetFileSha1Base36( array $params ) {
759 759
 		$fsFile = $this->getLocalReference( $params );
@@ -1031,7 +1031,7 @@  discard block
 block discarded – undo
1031 1031
 	 * to a list of storage paths to be locked. All returned paths are
1032 1032
 	 * normalized.
1033 1033
 	 *
1034
-	 * @param array $performOps List of FileOp objects
1034
+	 * @param FileOp[] $performOps List of FileOp objects
1035 1035
 	 * @return array (LockManager::LOCK_UW => path list, LockManager::LOCK_EX => path list)
1036 1036
 	 */
1037 1037
 	final public function getPathsToLockForOpsInternal( array $performOps ) {
Please login to merge, or discard this patch.
includes/libs/filebackend/fileop/FileOp.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
 	 * Get the value of the parameter with the given name
129 129
 	 *
130 130
 	 * @param string $name
131
-	 * @return mixed Returns null if the parameter is not set
131
+	 * @return string Returns null if the parameter is not set
132 132
 	 */
133 133
 	final public function getParam( $name ) {
134 134
 		return isset( $this->params[$name] ) ? $this->params[$name] : null;
Please login to merge, or discard this patch.
includes/libs/filebackend/FSFileBackend.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -470,6 +470,10 @@
 block discarded – undo
470 470
 		return $status;
471 471
 	}
472 472
 
473
+	/**
474
+	 * @param string $fullCont
475
+	 * @param string $dirRel
476
+	 */
473 477
 	protected function doSecureInternal( $fullCont, $dirRel, array $params ) {
474 478
 		$status = Status::newGood();
475 479
 		list( , $shortCont, ) = FileBackend::splitStoragePath( $params['dir'] );
Please login to merge, or discard this patch.
includes/libs/rdbms/lbfactory/ILBFactory.php 1 patch
Doc Comments   +16 added lines, -15 removed lines patch added patch discarded remove patch
@@ -36,22 +36,8 @@  discard block
 block discarded – undo
36 36
 	 *
37 37
 	 * Sub-classes will extend the required keys in $conf with additional parameters
38 38
 	 *
39
-	 * @param $conf $params Array with keys:
40
-	 *  - localDomain: A DatabaseDomain or domain ID string.
41
-	 *  - readOnlyReason : Reason the master DB is read-only if so [optional]
42
-	 *  - srvCache : BagOStuff object for server cache [optional]
43
-	 *  - memCache : BagOStuff object for cluster memory cache [optional]
44
-	 *  - wanCache : WANObjectCache object [optional]
45
-	 *  - hostname : The name of the current server [optional]
46
-	 *  - cliMode: Whether the execution context is a CLI script. [optional]
47
-	 *  - profiler : Class name or instance with profileIn()/profileOut() methods. [optional]
48
-	 *  - trxProfiler: TransactionProfiler instance. [optional]
49
-	 *  - replLogger: PSR-3 logger instance. [optional]
50
-	 *  - connLogger: PSR-3 logger instance. [optional]
51
-	 *  - queryLogger: PSR-3 logger instance. [optional]
52
-	 *  - perfLogger: PSR-3 logger instance. [optional]
53
-	 *  - errorLogger : Callback that takes an Exception and logs it. [optional]
54 39
 	 * @throws InvalidArgumentException
40
+	 * @return void
55 41
 	 */
56 42
 	public function __construct( array $conf );
57 43
 
@@ -59,6 +45,7 @@  discard block
 block discarded – undo
59 45
 	 * Disables all load balancers. All connections are closed, and any attempt to
60 46
 	 * open a new connection will result in a DBAccessError.
61 47
 	 * @see ILoadBalancer::disable()
48
+	 * @return void
62 49
 	 */
63 50
 	public function destroy();
64 51
 
@@ -123,6 +110,7 @@  discard block
 block discarded – undo
123 110
 	 * Prepare all tracked load balancers for shutdown
124 111
 	 * @param integer $mode One of the class SHUTDOWN_* constants
125 112
 	 * @param callable|null $workCallback Work to mask ChronologyProtector writes
113
+	 * @return void
126 114
 	 */
127 115
 	public function shutdown(
128 116
 		$mode = self::SHUTDOWN_CHRONPROT_SYNC, callable $workCallback = null
@@ -132,6 +120,7 @@  discard block
 block discarded – undo
132 120
 	 * Commit all replica DB transactions so as to flush any REPEATABLE-READ or SSI snapshot
133 121
 	 *
134 122
 	 * @param string $fname Caller name
123
+	 * @return void
135 124
 	 */
136 125
 	public function flushReplicaSnapshots( $fname = __METHOD__ );
137 126
 
@@ -142,6 +131,7 @@  discard block
 block discarded – undo
142 131
 	 * @param string $fname Caller name
143 132
 	 * @param array $options Options map:
144 133
 	 *   - maxWriteDuration: abort if more than this much time was spent in write queries
134
+	 * @return void
145 135
 	 */
146 136
 	public function commitAll( $fname = __METHOD__, array $options = [] );
147 137
 
@@ -157,6 +147,7 @@  discard block
 block discarded – undo
157 147
 	 *
158 148
 	 * @param string $fname
159 149
 	 * @throws DBTransactionError
150
+	 * @return void
160 151
 	 */
161 152
 	public function beginMasterChanges( $fname = __METHOD__ );
162 153
 
@@ -166,12 +157,14 @@  discard block
 block discarded – undo
166 157
 	 * @param array $options Options map:
167 158
 	 *   - maxWriteDuration: abort if more than this much time was spent in write queries
168 159
 	 * @throws Exception
160
+	 * @return void
169 161
 	 */
170 162
 	public function commitMasterChanges( $fname = __METHOD__, array $options = [] );
171 163
 
172 164
 	/**
173 165
 	 * Rollback changes on all master connections
174 166
 	 * @param string $fname Caller name
167
+	 * @return void
175 168
 	 */
176 169
 	public function rollbackMasterChanges( $fname = __METHOD__ );
177 170
 
@@ -216,6 +209,7 @@  discard block
 block discarded – undo
216 209
 	 *   - timeout : Max wait time. Default: ~60 seconds
217 210
 	 *   - ifWritesSince: Only wait if writes were done since this UNIX timestamp
218 211
 	 * @throws DBReplicationWaitError If a timeout or error occured waiting on a DB cluster
212
+	 * @return void
219 213
 	 */
220 214
 	public function waitForReplication( array $opts = [] );
221 215
 
@@ -226,6 +220,7 @@  discard block
 block discarded – undo
226 220
 	 *
227 221
 	 * @param string $name Callback name
228 222
 	 * @param callable|null $callback Use null to unset a callback
223
+	 * @return void
229 224
 	 */
230 225
 	public function setWaitForReplicationListener( $name, callable $callback = null );
231 226
 
@@ -246,6 +241,7 @@  discard block
 block discarded – undo
246 241
 	 * @param mixed $ticket Result of getEmptyTransactionTicket()
247 242
 	 * @param array $opts Options to waitForReplication()
248 243
 	 * @throws DBReplicationWaitError
244
+	 * @return void
249 245
 	 */
250 246
 	public function commitAndWaitForReplication( $fname, $ticket, array $opts = [] );
251 247
 
@@ -259,6 +255,7 @@  discard block
 block discarded – undo
259 255
 	 * Disable the ChronologyProtector for all load balancers
260 256
 	 *
261 257
 	 * This can be called at the start of special API entry points
258
+	 * @return void
262 259
 	 */
263 260
 	public function disableChronologyProtection();
264 261
 
@@ -266,16 +263,19 @@  discard block
 block discarded – undo
266 263
 	 * Set a new table prefix for the existing local domain ID for testing
267 264
 	 *
268 265
 	 * @param string $prefix
266
+	 * @return void
269 267
 	 */
270 268
 	public function setDomainPrefix( $prefix );
271 269
 
272 270
 	/**
273 271
 	 * Close all open database connections on all open load balancers.
272
+	 * @return void
274 273
 	 */
275 274
 	public function closeAll();
276 275
 
277 276
 	/**
278 277
 	 * @param string $agent Agent name for query profiling
278
+	 * @return void
279 279
 	 */
280 280
 	public function setAgentName( $agent );
281 281
 
@@ -295,6 +295,7 @@  discard block
 block discarded – undo
295 295
 	 *   - IPAddress : IP address
296 296
 	 *   - UserAgent : User-Agent HTTP header
297 297
 	 *   - ChronologyProtection : cookie/header value specifying ChronologyProtector usage
298
+	 * @return void
298 299
 	 */
299 300
 	public function setRequestInfo( array $info );
300 301
 }
Please login to merge, or discard this patch.