Code Duplication    Length = 3-5 lines in 2 locations

includes/libs/rdbms/loadbalancer/LoadBalancer.php 2 locations

@@ 415-419 (lines=5) @@
412
			$i = ArrayUtils::pickRandom( $readLoads );
413
		}
414
415
		if ( $i > 0 ) {
416
			$ok = $this->doWait( $i, true, $timeout );
417
		} else {
418
			$ok = true; // no applicable loads
419
		}
420
421
		return $ok;
422
	}
@@ 430-432 (lines=3) @@
427
428
		$ok = true;
429
		for ( $i = 1; $i < $serverCount; $i++ ) {
430
			if ( $this->mLoads[$i] > 0 ) {
431
				$ok = $this->doWait( $i, true, $timeout ) && $ok;
432
			}
433
		}
434
435
		return $ok;