CloneSet266


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9210.976elseif
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19206
plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/edit.php
2997
plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/fns_tinybrowser.php
Clone Instance
1
Line Count
9
Source Line
206
Source File
plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/edit.php

                                elseif ($mime['mime'] == 'image/gif')
                                        {
                                        $originaltransparentcolor=  imagecolortransparent( $im);
                                        if ($originaltransparentcolor>=  0
                                            &&                                $originaltransparentcolor<  imagecolorstotal( $im)) {
                                                $transparentcolor=  imagecolorsforindex( $im, $originaltransparentcolor);
                                                $newtransparentcolor=  imagecolorallocate($newim,$transparentcolor['red'],$transparentcolor['green'],$transparentcolor['blue']);
                                                imagefill( $newim, 0, 0, $newtransparentcolor);
                                                imagecolortransparent( $newim, $newtransparentcolor);
                                              }
                                      }


Clone Instance
2
Line Count
9
Source Line
97
Source File
plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/fns_tinybrowser.php

        elseif ($imagetype == 'image/gif')
                {
                $originaltransparentcolor=  imagecolortransparent( $im);
                if ($originaltransparentcolor>=  0
                    &&                                $originaltransparentcolor<  imagecolorstotal( $im)) {
                        $transparentcolor=  imagecolorsforindex( $im, $originaltransparentcolor);
                        $newtransparentcolor=  imagecolorallocate($newim,$transparentcolor['red'],$transparentcolor['green'],$transparentcolor['blue']);
                        imagefill( $newim, 0, 0, $newtransparentcolor);
                        imagecolortransparent( $newim, $newtransparentcolor);
                      }
              }


Clone AbstractionParameter Count: 1Parameter Bindings

elseif ( [[#variable3c6abee0]]== 'image/gif') {
  $originaltransparentcolor=imagecolortransparent($im);
  if ($originaltransparentcolor>=0
      && $originaltransparentcolor<imagecolorstotal($im)) {
    $transparentcolor=imagecolorsforindex($im,$originaltransparentcolor);
    $newtransparentcolor=imagecolorallocate($newim,$transparentcolor['red'],$transparentcolor['green'],$transparentcolor['blue']);
    imagefill($newim,0,0,$newtransparentcolor);
    imagecolortransparent($newim,$newtransparentcolor);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#3c6abee0]]
$mime['mime'] 
12[[#3c6abee0]]
$imagetype