original_string: private function prettifyIndexLabel($labelType, $label)
      {
          if ($labelType == self::TABLE_METADATA_PERIOD_INDEX) { // prettify period labels
              $period = $this->periods[$label];
              $label = $period->getLabel();
              if ($label === 'week' || $label === 'range') {
                  return $period->getRangeString();
              }
  
              return $period->getPrettyString();
          }
          return $label;
      }
code: private function prettifyIndexLabel($labelType, $label)
      {
          if ($labelType == self::TABLE_METADATA_PERIOD_INDEX) { // prettify period labels
              $period = $this->periods[$label];
              $label = $period->getLabel();
              if ($label === 'week' || $label === 'range') {
                  return $period->getRangeString();
              }
  
              return $period->getPrettyString();
          }
          return $label;
      }
code_tokens: private function prettifyIndexLabel ( $ labelType , $ label ) { if ( $ labelType == self :: TABLE_METADATA_PERIOD_INDEX ) { // prettify period labels $ period = $ this -> periods [ $ label ] ; $ label = $ period -> getLabel ( ) ; if ( $ label === 'week' || $ label === 'range' ) { return $ period -> getRangeString ( ) ; } return $ period -> getPrettyString ( ) ; } return $ label ; }
docstring: Returns the pretty version of an index label.
  
  @param string $labelType eg, 'site', 'period', etc.
  @param string $label eg, '0', '1', '2012-01-01,2012-01-31', etc.
  @return string
docstring_tokens: Returns the pretty version of an index label .