Code Duplication    Length = 3-3 lines in 2 locations

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

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

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

@@ 83-85 (lines=3) @@
80
			? DatabaseDomain::newFromId( $conf['localDomain'] )
81
			: DatabaseDomain::newUnspecified();
82
83
		if ( isset( $conf['readOnlyReason'] ) && is_string( $conf['readOnlyReason'] ) ) {
84
			$this->readOnlyReason = $conf['readOnlyReason'];
85
		}
86
87
		$this->srvCache = isset( $conf['srvCache'] ) ? $conf['srvCache'] : new EmptyBagOStuff();
88
		$this->memCache = isset( $conf['memCache'] ) ? $conf['memCache'] : new EmptyBagOStuff();