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

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