Code Duplication    Length = 4-6 lines in 2 locations

includes/libs/rdbms/loadmonitor/LoadMonitor.php 2 locations

@@ 157-162 (lines=6) @@
154
			// Scale from 10% to 100% of nominal weight
155
			$weightScales[$i] = max( $newWeight, .10 );
156
157
			if ( !$conn ) {
158
				$lagTimes[$i] = false;
159
				$host = $this->parent->getServerName( $i );
160
				$this->replLogger->error( __METHOD__ . ": host $host is unreachable" );
161
				continue;
162
			}
163
164
			if ( $conn->getLBInfo( 'is static' ) ) {
165
				$lagTimes[$i] = 0;
@@ 168-171 (lines=4) @@
165
				$lagTimes[$i] = 0;
166
			} else {
167
				$lagTimes[$i] = $conn->getLag();
168
				if ( $lagTimes[$i] === false ) {
169
					$host = $this->parent->getServerName( $i );
170
					$this->replLogger->error( __METHOD__ . ": host $host is not replicating?" );
171
				}
172
			}
173
174
			if ( $close ) {