function showCleanupForm()
 {
     $globalUser = new CentralAuthUser($this->getUser()->getName());
     $merged = $globalUser->listAttached();
     $remainder = $globalUser->listUnattached();
     $this->showStatus($merged, $remainder);
 }
 /**
  * Check to see if a given username is available for use via CentralAuth.
  *
  * Note that this is not a definiative check. It does not include checking
  * for AntiSpoof, TitleBlacklist or other AbortNewAccount hook blocks.
  * Unfortunately the only cannonical way to validate that an account is
  * available is to make the account and check that it wasn't blocked by
  * something.
  *
  * @param string $name
  * @return Status Canonicalized name
  */
 public static function isNameAvailable($name)
 {
     $safe = User::getCanonicalName($name, 'creatable');
     $status = Status::newGood($safe);
     if ($safe === false || $safe === '') {
         $status->fatal('globalrenamerequest-newname-err-invalid');
         return $status;
     }
     if (self::nameHasPendingRequest($safe)) {
         $status->fatal('globalrenamerequest-newname-err-taken');
         return $status;
     }
     // New user creation checks against local wiki only using an API
     // request, but we need to check against te central user table instead
     $centralUser = new CentralAuthUser($safe);
     if ($centralUser->exists() || $centralUser->listUnattached()) {
         $status->fatal('globalrenamerequest-newname-err-taken');
         return $status;
     }
     // Check to see if there is an active rename to the desired name.
     $progress = $centralUser->renameInProgress();
     if ($progress && $safe == $progress[1]) {
         $status->fatal('globalrenamerequest-newname-err-taken');
         return $status;
     }
     return $status;
 }