Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 0 | 1.000 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 328 | plugins/authentication/openid/Auth/OpenID.php |
2 | 17 | 103 | plugins/authentication/openid/Auth/Yadis/XRI.php |
| ||||
if (count($args) == 0) { return $url; } // Non-empty array; if it is an array of arrays, use // multisort; otherwise use sort. if (array_key_exists(0, $args) && is_array($args[0])) { // Do nothing here. } else { $keys= array_keys($args); sort($keys); $new_args= array(); foreach ($keys as $key) { $new_args[]= array( $key, $args[$key] ); } $args= $new_args; } |
| ||||
// Append some arguments to an HTTP query. Yes, this is just like // OpenID's appendArgs, but with special seasoning for XRI // queries. if (count($args) == 0) { return $url; } // Non-empty array; if it is an array of arrays, use multisort; // otherwise use sort. if (array_key_exists(0, $args) && is_array($args[0])) { // Do nothing here. } else { $keys= array_keys($args); sort($keys); $new_args= array(); foreach ($keys as $key) { $new_args[]= array( $key, $args[$key] ); } $args= $new_args; } |
| |||
// Append some arguments to an HTTP query. Yes, this is just like // OpenID's appendArgs, but with special seasoning for XRI // queries. if (count($args) == 0) { return $url; } // Non-empty array; if it is an array of arrays, use multisort; // otherwise use sort. // Non-empty array; if it is an array of arrays, use // multisort; otherwise use sort. if (array_key_exists(0,$args) && is_array($args[0])) { // Do nothing here. } else { $keys=array_keys($args); sort($keys); $new_args=array(); foreach ($keys as $key) { $new_args[]=array( $key, $args[$key] ); } $args=$new_args; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |