| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 15 | 2 | 0 | 1.000 | statement_sequence[4] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 15 | 6569 | libraries/simplepie/simplepie.php |
| 2 | 15 | 6678 | libraries/simplepie/simplepie.php |
| ||||
$this->headers = $parser->headers;
$this->body = $parser->body;
$this->status_code = $parser->status_code;
if (($this->status_code == 300
|| $this->status_code == 301
|| $this->status_code == 302
|| $this->status_code == 303
|| $this->status_code == 307
|| $this->status_code > 307
&& $this->status_code < 400)
&& isset ($this->headers['location'])
&& $this->redirects < $redirects) {
$this->redirects ++;
if ( isset ($this->headers['content-location']))
{
$location= SimplePie_Misc::absolutize_url($this->headers['location'], SimplePie_Misc::absolutize_url($this->headers['content-location'], $url));
}
else
{
$location= SimplePie_Misc::absolutize_url($this->headers['location'], $url);
}
return $this->SimplePie_File($location, $timeout, $redirects, $headers, $useragent, $force_fsockopen);
}
|
| ||||
$this->headers = $parser->headers;
$this->body = $parser->body;
$this->status_code = $parser->status_code;
if (($this->status_code == 300
|| $this->status_code == 301
|| $this->status_code == 302
|| $this->status_code == 303
|| $this->status_code == 307
|| $this->status_code > 307
&& $this->status_code < 400)
&& isset ($this->headers['location'])
&& $this->redirects < $redirects) {
$this->redirects ++;
if ( isset ($this->headers['content-location']))
{
$location= SimplePie_Misc::absolutize_url($this->headers['location'], SimplePie_Misc::absolutize_url($this->headers['content-location'], $url));
}
else
{
$location= SimplePie_Misc::absolutize_url($this->headers['location'], $url);
}
return $this->SimplePie_File($location, $timeout, $redirects, $headers, $useragent, $force_fsockopen);
}
|
| |||
$this->headers =$parser->headers;
$this->body =$parser->body;
$this->status_code =$parser->status_code;
if (($this->status_code == 300
|| $this->status_code == 301
|| $this->status_code == 302
|| $this->status_code == 303
|| $this->status_code == 307
|| $this->status_code >307
&& $this->status_code <400)
&& isset ($this->headers['location'])
&& $this->redirects <$redirects) {
$this->redirects ++;
if ( isset ($this->headers['content-location'])) {
$location=SimplePie_Misc::absolutize_url($this->headers['location'],SimplePie_Misc::absolutize_url($this->headers['content-location'],$url));
}
else {
$location=SimplePie_Misc::absolutize_url($this->headers['location'],$url);
}
return $this->SimplePie_File($location,$timeout,$redirects,$headers,$useragent,$force_fsockopen);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| None | |||