protected function determineConfig($config)
{
$parsed = $this->parseJson($config, array('indent' => ' ', 'lineEnding' => "\n"));
if (!is_string($parsed['indent'])) {
throw new \InvalidArgumentException(sprintf('Expected string value for "indent", got "%s".', is_object($parsed['indent']) ? get_class($parsed['indent']) : gettype($parsed['indent']) . '#' . $parsed['indent']));
}
if (!is_string($parsed['lineEnding'])) {
throw new \InvalidArgumentException(sprintf('Expected string value for "lineEnding", got "%s".', is_object($parsed['lineEnding']) ? get_class($parsed['lineEnding']) : gettype($parsed['lineEnding']) . '#' . $parsed['lineEnding']));
}
return $parsed;
}