CloneSet262


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15201.000statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115262
plugins/authentication/openid/Auth/OpenID/Parse.php
215213
plugins/authentication/openid/Auth/Yadis/ParseHTML.php
Clone Instance
1
Line Count
15
Source Line
262
Source File
plugins/authentication/openid/Auth/OpenID/Parse.php

        foreach ($link_matches[0] as $link) {
            $attr_matches=  array();
            preg_match_all($this->_attr_find ,$link, $attr_matches);
            $link_attrs=  array();
            foreach ($attr_matches[0] as $index => $full_match) {
                $name=  $attr_matches[1][$index];
                $value=  $this->replaceEntities(
                              $this->removeQuotes($attr_matches[2][$index]));

                $link_attrs[strtolower($name)]=  $value;
              }
            $link_data[]=  $link_attrs;
          }

        return $link_data;


Clone Instance
2
Line Count
15
Source Line
213
Source File
plugins/authentication/openid/Auth/Yadis/ParseHTML.php

        foreach ($link_matches[0] as $link) {
            $attr_matches=  array();
            preg_match_all($this->_attr_find ,$link, $attr_matches);
            $link_attrs=  array();
            foreach ($attr_matches[0] as $index => $full_match) {
                $name=  $attr_matches[1][$index];
                $value=  $this->replaceEntities(
                              $this->removeQuotes($attr_matches[2][$index]));

                $link_attrs[strtolower($name)]=  $value;
              }
            $link_data[]=  $link_attrs;
          }

        return $link_data;


Clone AbstractionParameter Count: 0Parameter Bindings

foreach ($link_matches[0] as $link) {
  $attr_matches=array();
  preg_match_all($this->_attr_find ,$link,$attr_matches);
  $link_attrs=array();
  foreach ($attr_matches[0] as $index => $full_match) {
    $name=$attr_matches[1][$index];
    $value=$this->replaceEntities($this->removeQuotes($attr_matches[2][$index]));
    $link_attrs[strtolower($name)]=$value;
  }
  $link_data[]=$link_attrs;
}
return $link_data;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None