Code Duplication    Length = 3-3 lines in 2 locations

includes/libs/rdbms/loadbalancer/LoadBalancer.php 1 location

@@ 147-149 (lines=3) @@
144
		$this->mErrorConnection = false;
145
		$this->mAllowLagged = false;
146
147
		if ( isset( $params['readOnlyReason'] ) && is_string( $params['readOnlyReason'] ) ) {
148
			$this->readOnlyReason = $params['readOnlyReason'];
149
		}
150
151
		if ( isset( $params['loadMonitor'] ) ) {
152
			$this->mLoadMonitorClass = $params['loadMonitor'];

includes/libs/rdbms/lbfactory/LBFactory.php 1 location

@@ 109-111 (lines=3) @@
106
			? DatabaseDomain::newFromId( $conf['localDomain'] )
107
			: DatabaseDomain::newUnspecified();
108
109
		if ( isset( $conf['readOnlyReason'] ) && is_string( $conf['readOnlyReason'] ) ) {
110
			$this->readOnlyReason = $conf['readOnlyReason'];
111
		}
112
113
		$this->srvCache = isset( $conf['srvCache'] ) ? $conf['srvCache'] : new EmptyBagOStuff();
114
		$this->memCache = isset( $conf['memCache'] ) ? $conf['memCache'] : new EmptyBagOStuff();