CloneSet311


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17230.980statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117151
plugins/authentication/openid/Auth/Yadis/ParanoidHTTPFetcher.php
217208
plugins/authentication/openid/Auth/Yadis/ParanoidHTTPFetcher.php
Clone Instance
1
Line Count
17
Source Line
151
Source File
plugins/authentication/openid/Auth/Yadis/ParanoidHTTPFetcher.php

                curl_close($c);

                $new_headers=  array();

                foreach ($headers as $header) {
                    if (strpos($header, ': ')) {
                        list ($name, $value)= explode(': ', $header, 2);
                        $new_headers[$name]=  $value;
                      }
                  }

                Auth_OpenID::log(
                    "Successfully fetched '%s': GET response code %s",
                    $url, $code);

                return new Auth_Yadis_HTTPResponse($url, $code,
                                                    $new_headers, $body);


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

        curl_close($c);

        $new_headers=  $extra_headers;

        foreach ($this->headers as $header) {
            if (strpos($header, ': ')) {
                list ($name, $value)= explode(': ', $header, 2);
                $new_headers[$name]=  $value;
              }
          }


        Auth_OpenID::log("Successfully fetched '%s': POST response code %s",
                         $url, $code);

        return new Auth_Yadis_HTTPResponse($url, $code,
                                           $new_headers, $body);


Clone AbstractionParameter Count: 3Parameter Bindings

curl_close($c);
$new_headers= [[#variable4e4fefa0]];
foreach ( [[#variable4e4fef20]]as $header) {
  if (strpos($header,': ')) {
    list ($name,$value)=explode(': ',$header,2);
    $new_headers[$name]=$value;
  }
}
Auth_OpenID::log( [[#variable2550bc20]],$url,$code);
return new Auth_Yadis_HTTPResponse($url,$code,$new_headers,$body);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4e4fefa0]]
array() 
12[[#4e4fefa0]]
$extra_headers 
21[[#4e4fef20]]
$headers 
22[[#4e4fef20]]
$this->headers 
31[[#2550bc20]]
"Successfully fetched '%s': GET response code %s" 
32[[#2550bc20]]
"Successfully fetched '%s': POST response code %s"