src/Config/Writer/SphinxConf.php
private function getValuesString(array $values, $tab = true)
    {
        $glue = $tab ? PHP_EOL . "\t" : PHP_EOL;
        return implode(
            $glue,
            array_map(
                function ($key) use ($values, $glue) {
                    if (!is_array($values[$key])) {
                        $return = $key . ' = ' . $values[$key];
                    } else {
                        $return = implode(
                            $glue,
                            array_map(
                                function ($value) use ($key) {
                                    return $key . ' = ' . $value;
                                },
                                $values[$key]
                            )
                        );
                    }
                    if ($key == 'charset_table') {
                        $filter = new SeparatorToSeparator(', ', ', \\' . $glue);
                        return $filter->filter($return);
                    }
                    return $return;
                },
                array_keys($values)
            )
        );
    }
private function getValuesString(array $values, $tab = true)
    {
        $glue = $tab ? PHP_EOL . "\t" : PHP_EOL;
        return implode(
            $glue,
            array_map(
                function ($key) use ($values, $glue) {
                    if (!is_array($values[$key])) {
                        $return = $key . ' = ' . $values[$key];
                    } else {
                        $return = implode(
                            $glue,
                            array_map(
                                function ($value) use ($key) {
                                    return $key . ' = ' . $value;
                                },
                                $values[$key]
                            )
                        );
                    }
                    if ($key == 'charset_table') {
                        $filter = new SeparatorToSeparator(', ', ', \\' . $glue);
                        return $filter->filter($return);
                    }
                    return $return;
                },
                array_keys($values)
            )
        );
    }
private function getValuesString ( array $ values , $ tab = true ) { $ glue = $ tab ? PHP_EOL . "\t" : PHP_EOL ; return implode ( $ glue , array_map ( function ( $ key ) use ( $ values , $ glue ) { if ( ! is_array ( $ values [ $ key ] ) ) { $ return = $ key . ' = ' . $ values [ $ key ] ; } else { $ return = implode ( $ glue , array_map ( function ( $ value ) use ( $ key ) { return $ key . ' = ' . $ value ; } , $ values [ $ key ] ) ) ; } if ( $ key == 'charset_table' ) { $ filter = new SeparatorToSeparator ( ', ' , ', \\' . $ glue ) ; return $ filter -> filter ( $ return ) ; } return $ return ; } , array_keys ( $ values ) ) ) ; }
Construct a string representation from configuration associative values

@param array $values
@param bool $tab
@return string
Construct a string representation from configuration associative values