src/Config/Writer/SphinxConf.php
protected function getCommandConfig(Config $config, $command)
    {
        $string = '';
        if (isset($config[$command])) {
            /** @var Config $config */
            $config = $config[$command];
            if ($config->count() > 0) {
                $config = $config->toArray();
                /** @var array $config */
                $string .= $this->commands[$command] . PHP_EOL . '{' . PHP_EOL . "\t";
                $string .= $this->getValuesString($config, true);
                $string .= PHP_EOL . '}' . PHP_EOL;
            }
        }
        return $string;
    }
protected function getCommandConfig(Config $config, $command)
    {
        $string = '';
        if (isset($config[$command])) {
            /** @var Config $config */
            $config = $config[$command];
            if ($config->count() > 0) {
                $config = $config->toArray();
                /** @var array $config */
                $string .= $this->commands[$command] . PHP_EOL . '{' . PHP_EOL . "\t";
                $string .= $this->getValuesString($config, true);
                $string .= PHP_EOL . '}' . PHP_EOL;
            }
        }
        return $string;
    }
protected function getCommandConfig ( Config $ config , $ command ) { $ string = '' ; if ( isset ( $ config [ $ command ] ) ) { /** @var Config $config */ $ config = $ config [ $ command ] ; if ( $ config -> count ( ) > 0 ) { $ config = $ config -> toArray ( ) ; /** @var array $config */ $ string .= $ this -> commands [ $ command ] . PHP_EOL . '{' . PHP_EOL . "\t" ; $ string .= $ this -> getValuesString ( $ config , true ) ; $ string .= PHP_EOL . '}' . PHP_EOL ; } } return $ string ; }
Creates the config part of the specified command

@param Config $config
@param string $command
@return string
Creates the config part of the specified command