Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 2 | 4 | 0.981 | class_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 2765 | libraries/phpxmlrpc/xmlrpc.php |
2 | 18 | 2794 | libraries/phpxmlrpc/xmlrpc.php |
| ||||
/** * Add an array of xmlrpcval objects to an xmlrpcval * @param array $vals * @return int 1 or 0 on failure * @access public * * @todo add some checking for $vals to be an array of xmlrpcvals? */ function addArray($vals) { if ($this->mytype == 0) { $this->mytype =$GLOBALS['xmlrpcTypes']['array']; $this->me['array']=$vals; return 1; } elseif ($this->mytype == 2) { // we're adding to an array here $this->me['array']= array_merge($this->me['array'], $vals); return 1; } else { error_log('XML-RPC: xmlrpcval::addArray: already initialized as a [' . $this->kindOf() . ']'); return 0; } } |
| ||||
/** * Add an array of named xmlrpcval objects to an xmlrpcval * @param array $vals * @return int 1 or 0 on failure * @access public * * @todo add some checking for $vals to be an array? */ function addStruct($vals) { if ($this->mytype == 0) { $this->mytype =$GLOBALS['xmlrpcTypes']['struct']; $this->me['struct']=$vals; return 1; } elseif ($this->mytype == 3) { // we're adding to a struct here $this->me['struct']= array_merge($this->me['struct'], $vals); return 1; } else { error_log('XML-RPC: xmlrpcval::addStruct: already initialized as a [' . $this->kindOf() . ']'); return 0; } } |
| |||
/** * Add an array of named xmlrpcval objects to an xmlrpcval * @param array $vals * @return int 1 or 0 on failure * @access public * * @todo add some checking for $vals to be an array? */ /** * Add an array of xmlrpcval objects to an xmlrpcval * @param array $vals * @return int 1 or 0 on failure * @access public * * @todo add some checking for $vals to be an array of xmlrpcvals? */ function [[#variable5244e880]]($vals) { if ($this->mytype == 0) { $this->mytype =$GLOBALS['xmlrpcTypes'][ [[#variable5244e860]]]; $this->me[ [[#variable5244e860]]]=$vals; return 1; } elseif ($this->mytype == [[#variable5244e7e0]]) { // we're adding to a struct here // we're adding to an array here $this->me[ [[#variable5244e860]]]=array_merge($this->me[ [[#variable5244e860]]],$vals); return 1; } else { error_log( [[#variable5244e800]] . $this->kindOf() . ']'); return 0; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5244e880]] | addStruct |
1 | 2 | [[#5244e880]] | addArray |
2 | 1 | [[#5244e860]] | 'struct' |
2 | 2 | [[#5244e860]] | 'array' |
3 | 1 | [[#5244e7e0]] | 3 |
3 | 2 | [[#5244e7e0]] | 2 |
4 | 1 | [[#5244e800]] | 'XML-RPC: xmlrpcval::addStruct: already initialized as a [' |
4 | 2 | [[#5244e800]] | 'XML-RPC: xmlrpcval::addArray: already initialized as a [' |