protected function encodeConfiguration($config = [])
    {
        $value = [];
        ksort($config);
        foreach ($config as $directive => $values) {
            $values = array_unique($values);
            sort($values);
            array_unshift($values, $directive);
            $string = implode($this->sourceSeparator, $values);

            if ($string) {
                $value[] = $string;
            }
        }

        return implode($this->directiveSeparator . ' ', $value);
    }
protected function encodeConfiguration($config = [])
    {
        $value = [];
        ksort($config);
        foreach ($config as $directive => $values) {
            $values = array_unique($values);
            sort($values);
            array_unshift($values, $directive);
            $string = implode($this->sourceSeparator, $values);

            if ($string) {
                $value[] = $string;
            }
        }

        return implode($this->directiveSeparator . ' ', $value);
    }
protected function encodeConfiguration ( $ config = [ ] ) { $ value = [ ] ; ksort ( $ config ) ; foreach ( $ config as $ directive => $ values ) { $ values = array_unique ( $ values ) ; sort ( $ values ) ; array_unshift ( $ values , $ directive ) ; $ string = implode ( $ this -> sourceSeparator , $ values ) ; if ( $ string ) { $ value [ ] = $ string ; } } return implode ( $ this -> directiveSeparator . ' ' , $ value ) ; }
Encode the current configuration as string

@param  array $config

@return string
Encode the current configuration as string