original_string: private function getUniqueName(string $baseType, string $headerName) : string
      {
          if (isset($this->headerIndex[$baseType][$headerName])) {
              $newName = $headerName;
              $i = 0;
              while (isset($this->headerIndex[$baseType][$newName])) {
                  $newName = $headerName . '_u' . $i;
                  $i++;
              }
              $headerName = $newName;
          }
          $this->headerIndex[$baseType][$headerName] = 1;
          return $headerName;
      }
code: private function getUniqueName(string $baseType, string $headerName) : string
      {
          if (isset($this->headerIndex[$baseType][$headerName])) {
              $newName = $headerName;
              $i = 0;
              while (isset($this->headerIndex[$baseType][$newName])) {
                  $newName = $headerName . '_u' . $i;
                  $i++;
              }
              $headerName = $newName;
          }
          $this->headerIndex[$baseType][$headerName] = 1;
          return $headerName;
      }
code_tokens: private function getUniqueName ( string $ baseType , string $ headerName ) : string { if ( isset ( $ this -> headerIndex [ $ baseType ] [ $ headerName ] ) ) { $ newName = $ headerName ; $ i = 0 ; while ( isset ( $ this -> headerIndex [ $ baseType ] [ $ newName ] ) ) { $ newName = $ headerName . '_u' . $ i ; $ i ++ ; } $ headerName = $ newName ; } $ this -> headerIndex [ $ baseType ] [ $ headerName ] = 1 ; return $ headerName ; }
docstring: If necessary change the name to a unique one.
  @param string $baseType
  @param string $headerName
  @return string
docstring_tokens: If necessary change the name to a unique one .