Code Duplication    Length = 3-3 lines in 2 locations

includes/db/loadbalancer/LBFactory.php 1 location

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

includes/db/loadbalancer/LoadBalancer.php 1 location

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