Code Duplication    Length = 6-6 lines in 2 locations

includes/session/SessionManager.php 2 locations

@@ 425-430 (lines=6) @@
422
		}
423
424
		// Wiki is read-only?
425
		if ( wfReadOnly() ) {
426
			$logger->debug( __METHOD__ . ': denied by wfReadOnly()' );
427
			$user->setId( 0 );
428
			$user->loadFromId();
429
			return false;
430
		}
431
432
		$userName = $user->getName();
433
@@ 438-443 (lines=6) @@
435
		// no point in retrying.
436
		$session = self::getGlobalSession();
437
		$reason = $session->get( 'MWSession::AutoCreateBlacklist' );
438
		if ( $reason ) {
439
			$logger->debug( __METHOD__ . ": blacklisted in session ($reason)" );
440
			$user->setId( 0 );
441
			$user->loadFromId();
442
			return false;
443
		}
444
445
		// Is the IP user able to create accounts?
446
		$anon = new User;