Code Duplication    Length = 6-6 lines in 2 locations

includes/session/SessionManager.php 2 locations

@@ 415-420 (lines=6) @@
412
		}
413
414
		// Wiki is read-only?
415
		if ( wfReadOnly() ) {
416
			$logger->debug( __METHOD__ . ': denied by wfReadOnly()' );
417
			$user->setId( 0 );
418
			$user->loadFromId();
419
			return false;
420
		}
421
422
		$userName = $user->getName();
423
@@ 428-433 (lines=6) @@
425
		// no point in retrying.
426
		$session = self::getGlobalSession();
427
		$reason = $session->get( 'MWSession::AutoCreateBlacklist' );
428
		if ( $reason ) {
429
			$logger->debug( __METHOD__ . ": blacklisted in session ($reason)" );
430
			$user->setId( 0 );
431
			$user->loadFromId();
432
			return false;
433
		}
434
435
		// Is the IP user able to create accounts?
436
		$anon = new User;