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

@@ 1505-1508 (lines=4) @@
1502
		// Fetch the user ID from the master, so that we don't try to create the user
1503
		// when they already exist, due to replication lag
1504
		// @codeCoverageIgnoreStart
1505
		if ( !$localId && wfGetLB()->getReaderIndex() != 0 ) {
1506
			$localId = User::idFromName( $username, User::READ_LATEST );
1507
			$flags = User::READ_LATEST;
1508
		}
1509
		// @codeCoverageIgnoreEnd
1510
1511
		if ( $localId ) {