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);
    }
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);
    }
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 ) ; }
Returns the CSV header line for a set of metrics. Will translate columns if desired.

@param array $columnMetrics
@return array
Returns the CSV header line for a set of metrics . Will translate columns if desired .