CloneSet343


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17201.000statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117328
plugins/authentication/openid/Auth/OpenID.php
217103
plugins/authentication/openid/Auth/Yadis/XRI.php
Clone Instance
1
Line Count
17
Source Line
328
Source File
plugins/authentication/openid/Auth/OpenID.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;
          }


Clone Instance
2
Line Count
17
Source Line
103
Source File
plugins/authentication/openid/Auth/Yadis/XRI.php

    // 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;
      }


Clone AbstractionParameter Count: 0Parameter Bindings

// 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None