protected function flattenConfig(array $config)
	{
		foreach ($config as $k => $v)
		{
			if (is_array($v) && count($v) === 1)
			{
				$config[$k] = end($v);
			}
		}

		return $config;
	}
protected function flattenConfig(array $config)
	{
		foreach ($config as $k => $v)
		{
			if (is_array($v) && count($v) === 1)
			{
				$config[$k] = end($v);
			}
		}

		return $config;
	}
protected function flattenConfig ( array $ config ) { foreach ( $ config as $ k => $ v ) { if ( is_array ( $ v ) && count ( $ v ) === 1 ) { $ config [ $ k ] = end ( $ v ) ; } } return $ config ; }
Replace arrays that contain a single element with the element itself

@param  array $config
@return array
Replace arrays that contain a single element with the element itself