protected function convertValueTypes(array $config)
	{
		foreach ($config as $k => $v)
		{
			if (is_array($v))
			{
				$config[$k] = $this->convertValueTypes($v);
			}
			else
			{
				$config[$k] = $this->castConfigValue($k, $v);
			}
		}

		return $config;
	}
protected function convertValueTypes(array $config)
	{
		foreach ($config as $k => $v)
		{
			if (is_array($v))
			{
				$config[$k] = $this->convertValueTypes($v);
			}
			else
			{
				$config[$k] = $this->castConfigValue($k, $v);
			}
		}

		return $config;
	}
protected function convertValueTypes ( array $ config ) { foreach ( $ config as $ k => $ v ) { if ( is_array ( $ v ) ) { $ config [ $ k ] = $ this -> convertValueTypes ( $ v ) ; } else { $ config [ $ k ] = $ this -> castConfigValue ( $ k , $ v ) ; } } return $ config ; }
Convert known config values to the appropriate type

Will cast properties whose name is "defaultValue" or ends in "height" or "width" to integers

@param  array $config Original config
@return array         Converted config
Convert known config values to the appropriate type