Completed
Branch master (e77e7f)
by
unknown
24:19
created
includes/db/Database.php 1 patch
Doc Comments   +16 added lines, -6 removed lines patch added patch discarded remove patch
@@ -725,7 +725,7 @@  discard block
 block discarded – undo
725 725
 	}
726 726
 
727 727
 	/**
728
-	 * @return bool|string
728
+	 * @return string|false
729 729
 	 */
730 730
 	protected function restoreErrorHandler() {
731 731
 		restore_error_handler();
@@ -840,7 +840,7 @@  discard block
 block discarded – undo
840 840
 	}
841 841
 
842 842
 	/**
843
-	 * @param $sql
843
+	 * @param string $sql
844 844
 	 * @return string|null
845 845
 	 */
846 846
 	protected function getQueryVerb( $sql ) {
@@ -964,6 +964,12 @@  discard block
 block discarded – undo
964 964
 		return $res;
965 965
 	}
966 966
 
967
+	/**
968
+	 * @param string $sql
969
+	 * @param string $commentedSql
970
+	 * @param boolean $isWrite
971
+	 * @param string $fname
972
+	 */
967 973
 	private function doProfiledQuery( $sql, $commentedSql, $isWrite, $fname ) {
968 974
 		$isMaster = !is_null( $this->getLBInfo( 'master' ) );
969 975
 		# generalizeSQL() will probably cut down the query to reasonable
@@ -1036,6 +1042,10 @@  discard block
 block discarded – undo
1036 1042
 		}
1037 1043
 	}
1038 1044
 
1045
+	/**
1046
+	 * @param string $sql
1047
+	 * @param boolean $priorWritesPending
1048
+	 */
1039 1049
 	private function canRecoverFromDisconnect( $sql, $priorWritesPending ) {
1040 1050
 		# Transaction dropped; this can mean lost writes, or REPEATABLE-READ snapshots.
1041 1051
 		# Dropped connections also mean that named locks are automatically released.
@@ -1256,7 +1266,7 @@  discard block
 block discarded – undo
1256 1266
 	 *
1257 1267
 	 * @param array $options Associative array of options to be turned into
1258 1268
 	 *   an SQL query, valid keys are listed in the function.
1259
-	 * @return array
1269
+	 * @return string[]
1260 1270
 	 * @see DatabaseBase::select()
1261 1271
 	 */
1262 1272
 	public function makeSelectOptions( $options ) {
@@ -3178,8 +3188,8 @@  discard block
 block discarded – undo
3178 3188
 	 * on object's error ignore settings).
3179 3189
 	 *
3180 3190
 	 * @param string $filename File name to open
3181
-	 * @param bool|callable $lineCallback Optional function called before reading each line
3182
-	 * @param bool|callable $resultCallback Optional function called for each MySQL result
3191
+	 * @param boolean $lineCallback Optional function called before reading each line
3192
+	 * @param boolean $resultCallback Optional function called for each MySQL result
3183 3193
 	 * @param bool|string $fname Calling function name or false if name should be
3184 3194
 	 *   generated dynamically using $filename
3185 3195
 	 * @param bool|callable $inputCallback Optional function called for each
@@ -3526,7 +3536,7 @@  discard block
 block discarded – undo
3526 3536
 	}
3527 3537
 
3528 3538
 	/**
3529
-	 * @return string|bool Reason this DB is read-only or false if it is not
3539
+	 * @return string|false Reason this DB is read-only or false if it is not
3530 3540
 	 */
3531 3541
 	protected function getReadOnlyReason() {
3532 3542
 		$reason = $this->getLBInfo( 'readOnlyReason' );
Please login to merge, or discard this patch.
includes/filerepo/ForeignAPIRepo.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@
 block discarded – undo
210 210
 	}
211 211
 
212 212
 	/**
213
-	 * @param array $data
213
+	 * @param string $data
214 214
 	 * @return bool|array
215 215
 	 */
216 216
 	function getImageInfo( $data ) {
Please login to merge, or discard this patch.