CloneSet170


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15201.000statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1156569
libraries/simplepie/simplepie.php
2156678
libraries/simplepie/simplepie.php
Clone Instance
1
Line Count
15
Source Line
6569
Source File
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);
                                                      }


Clone Instance
2
Line Count
15
Source Line
6678
Source File
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);
                                                              }


Clone AbstractionParameter Count: 0Parameter Bindings

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