Code Duplication    Length = 4-5 lines in 2 locations

includes/clientpool/SquidPurgeClient.php 2 locations

@@ 261-264 (lines=4) @@
258
259
		if ( $bytesSent === false ) {
260
			$error = socket_last_error( $socket );
261
			if ( $error != self::EAGAIN && $error != self::EINTR ) {
262
				$this->log( 'write error: ' . socket_strerror( $error ) );
263
				$this->markDown();
264
			}
265
			return;
266
		}
267
@@ 286-290 (lines=5) @@
283
		MediaWiki\restoreWarnings();
284
		if ( $bytesRead === false ) {
285
			$error = socket_last_error( $socket );
286
			if ( $error != self::EAGAIN && $error != self::EINTR ) {
287
				$this->log( 'read error: ' . socket_strerror( $error ) );
288
				$this->markDown();
289
				return;
290
			}
291
		} elseif ( $bytesRead === 0 ) {
292
			// Assume EOF
293
			$this->close();