Code Duplication    Length = 4-4 lines in 2 locations

includes/session/SessionManager.php 1 location

@@ 403-406 (lines=4) @@
400
		// Fetch the user ID from the master, so that we don't try to create the user
401
		// when they already exist, due to replication lag
402
		// @codeCoverageIgnoreStart
403
		if ( !$localId && wfGetLB()->getReaderIndex() != 0 ) {
404
			$localId = User::idFromName( $user->getName(), User::READ_LATEST );
405
			$flags = User::READ_LATEST;
406
		}
407
		// @codeCoverageIgnoreEnd
408
409
		if ( $localId ) {

includes/auth/AuthManager.php 1 location

@@ 1491-1494 (lines=4) @@
1488
		// Fetch the user ID from the master, so that we don't try to create the user
1489
		// when they already exist, due to replication lag
1490
		// @codeCoverageIgnoreStart
1491
		if ( !$localId && wfGetLB()->getReaderIndex() != 0 ) {
1492
			$localId = User::idFromName( $username, User::READ_LATEST );
1493
			$flags = User::READ_LATEST;
1494
		}
1495
		// @codeCoverageIgnoreEnd
1496
1497
		if ( $localId ) {