Code Duplication    Length = 4-4 lines in 2 locations

lib/xmlrpcs.inc 1 location

@@ 1020-1023 (lines=4) @@
1017
					// build an xmlrpcmsg object with data parsed from xml
1018
					$m=new xmlrpcmsg($GLOBALS['_xh']['method']);
1019
					// now add parameters in
1020
					for($i=0; $i<count($GLOBALS['_xh']['params']); $i++)
1021
					{
1022
						$m->addParam($GLOBALS['_xh']['params'][$i]);
1023
					}
1024
1025
					if($this->debug > 1)
1026
					{

lib/xmlrpc.inc 1 location

@@ 3690-3693 (lines=4) @@
3687
				return $r;
3688
			case 'methodcall':
3689
				$m = new xmlrpcmsg($GLOBALS['_xh']['method']);
3690
				for($i=0; $i < count($GLOBALS['_xh']['params']); $i++)
3691
				{
3692
					$m->addParam($GLOBALS['_xh']['params'][$i]);
3693
				}
3694
				return $m;
3695
			case 'value':
3696
				return $GLOBALS['_xh']['value'];