Code Duplication    Length = 3-3 lines in 2 locations

includes/db/loadbalancer/LoadBalancer.php 1 location

@@ 116-118 (lines=3) @@
113
		$this->mErrorConnection = false;
114
		$this->mAllowLagged = false;
115
116
		if ( isset( $params['readOnlyReason'] ) && is_string( $params['readOnlyReason'] ) ) {
117
			$this->readOnlyReason = $params['readOnlyReason'];
118
		}
119
120
		if ( isset( $params['loadMonitor'] ) ) {
121
			$this->mLoadMonitorClass = $params['loadMonitor'];

includes/db/loadbalancer/LBFactory.php 1 location

@@ 58-60 (lines=3) @@
55
	 * @TODO: inject objects via dependency framework
56
	 */
57
	public function __construct( array $conf ) {
58
		if ( isset( $conf['readOnlyReason'] ) && is_string( $conf['readOnlyReason'] ) ) {
59
			$this->readOnlyReason = $conf['readOnlyReason'];
60
		}
61
		$this->chronProt = $this->newChronologyProtector();
62
		$this->trxProfiler = Profiler::instance()->getTransactionProfiler();
63
		// Use APC/memcached style caching, but avoids loops with CACHE_DB (T141804)