original_string: protected function createUniqueUsername( $username )
      {
          $originalName = $username;
          $existingUser = $this->userManager->findUserByUsername( $username );
          $suffix = 0;
          while ( $existingUser )
          {
              $suffix++;
              $username = $originalName . $suffix;
              $existingUser = $this->userManager->findUserByUsername( $username );
          }
          return $username;
      }
code: protected function createUniqueUsername( $username )
      {
          $originalName = $username;
          $existingUser = $this->userManager->findUserByUsername( $username );
          $suffix = 0;
          while ( $existingUser )
          {
              $suffix++;
              $username = $originalName . $suffix;
              $existingUser = $this->userManager->findUserByUsername( $username );
          }
          return $username;
      }
code_tokens: protected function createUniqueUsername ( $ username ) { $ originalName = $ username ; $ existingUser = $ this -> userManager -> findUserByUsername ( $ username ) ; $ suffix = 0 ; while ( $ existingUser ) { $ suffix ++ ; $ username = $ originalName . $ suffix ; $ existingUser = $ this -> userManager -> findUserByUsername ( $ username ) ; } return $ username ; }
docstring: Ensures uniqueness of username
  
  @param string $username
  @return string
docstring_tokens: Ensures uniqueness of username