Code Duplication    Length = 3-5 lines in 2 locations

includes/db/loadbalancer/LoadBalancer.php 2 locations

@@ 407-411 (lines=5) @@
404
			$i = ArrayUtils::pickRandom( $readLoads );
405
		}
406
407
		if ( $i > 0 ) {
408
			$ok = $this->doWait( $i, true, $timeout );
409
		} else {
410
			$ok = true; // no applicable loads
411
		}
412
413
		return $ok;
414
	}
@@ 428-430 (lines=3) @@
425
426
		$ok = true;
427
		for ( $i = 1; $i < $serverCount; $i++ ) {
428
			if ( $this->mLoads[$i] > 0 ) {
429
				$ok = $this->doWait( $i, true, $timeout ) && $ok;
430
			}
431
		}
432
433
		return $ok;