Code Duplication    Length = 11-13 lines in 2 locations

web_interface/astpp/system/libraries/Xmlrpc.php 2 locations

@@ 509-519 (lines=11) @@
506
		
507
		if ($array !== FALSE && is_array($array))
508
		{
509
			while (list($key) = each($array))
510
			{
511
				if (is_array($array[$key]))
512
				{
513
					$array[$key] = $this->decode($array[$key]);
514
				} else
515
				{
516
					$array[$key] = ($this->xss_clean) ? $CI->security->xss_clean($array[$key]) : $array[$key];
517
				}
518
			}
519
520
			$result = $array;
521
		} else
522
		{
@@ 1124-1136 (lines=13) @@
1121
		
1122
		if ($array !== FALSE && is_array($array))
1123
		{
1124
			while (list($key) = each($array))
1125
			{
1126
				if (is_array($array[$key]))
1127
				{
1128
					$array[$key] = $this->output_parameters($array[$key]);
1129
				} else
1130
				{
1131
					// 'bits' is for the MetaWeblog API image bits
1132
					// @todo - this needs to be made more general purpose
1133
					$array[$key] = ($key == 'bits' OR $this->xss_clean == FALSE) ? $array[$key] : $CI->security->xss_clean($array[$key]);
1134
				}
1135
			}
1136
1137
			$parameters = $array;
1138
		} else
1139
		{