original_string: private function getHeaderLine($columnMetrics)
      {
          foreach ($columnMetrics as $index => $value) {
              if (in_array($value, $this->unsupportedColumns)) {
                  unset($columnMetrics[$index]);
              }
          }
  
          if ($this->translateColumnNames) {
              $columnMetrics = $this->translateColumnNames($columnMetrics);
          }
  
          foreach ($columnMetrics as &$value) {
              $value = $this->formatValue($value);
          }
  
          return implode($this->separator, $columnMetrics);
      }
code: private function getHeaderLine($columnMetrics)
      {
          foreach ($columnMetrics as $index => $value) {
              if (in_array($value, $this->unsupportedColumns)) {
                  unset($columnMetrics[$index]);
              }
          }
  
          if ($this->translateColumnNames) {
              $columnMetrics = $this->translateColumnNames($columnMetrics);
          }
  
          foreach ($columnMetrics as &$value) {
              $value = $this->formatValue($value);
          }
  
          return implode($this->separator, $columnMetrics);
      }
code_tokens: private function getHeaderLine ( $ columnMetrics ) { foreach ( $ columnMetrics as $ index => $ value ) { if ( in_array ( $ value , $ this -> unsupportedColumns ) ) { unset ( $ columnMetrics [ $ index ] ) ; } } if ( $ this -> translateColumnNames ) { $ columnMetrics = $ this -> translateColumnNames ( $ columnMetrics ) ; } foreach ( $ columnMetrics as & $ value ) { $ value = $ this -> formatValue ( $ value ) ; } return implode ( $ this -> separator , $ columnMetrics ) ; }
docstring: Returns the CSV header line for a set of metrics. Will translate columns if desired.
  
  @param array $columnMetrics
  @return array
docstring_tokens: Returns the CSV header line for a set of metrics . Will translate columns if desired .