Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
20 | 2 | 2 | 0.990 | toplevel_statement_sequence[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 20 | 328 | plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/edit.php |
2 | 20 | 174 | plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/tinybrowser.php |
| ||||
// determine sort order $sortorder= ($sorttypenow == 'asc' ? SORT_ASC : SORT_DESC); $num_of_files= ( isset ($file['name']) ? count($file['name']) : 0); if ($num_of_files>0) { // sort files by selected order sortfileorder($sortbynow,$sortorder,$file); } // determine pagination if ($tinybrowser['pagination']>0) { $showpagestart= ($showpagenow ? ($_REQUEST['showpage']*$tinybrowser['pagination'])-$tinybrowser['pagination'] : 0); $showpageend= $showpagestart+$tinybrowser['pagination']; if ($showpageend>$num_of_files) $showpageend= $num_of_files; } else { $showpagestart= 0; $showpageend= $num_of_files; } |
| ||||
// determine sort order $sortorder= ($sorttypenow == 'asc' ? SORT_ASC : SORT_DESC); $num_of_files= ( isset ($file['name']) ? count($file['name']) : 0); if ($num_of_files>0) { // sort files by selected order sortfileorder($sortbynow,$sortorder,$file); } // determine pagination if ($tinybrowser['pagination']>0) { $showpage_start= ($showpagenow ? ($_REQUEST['showpage']*$tinybrowser['pagination'])-$tinybrowser['pagination'] : 0); $showpage_end= $showpage_start+$tinybrowser['pagination']; if ($showpage_end>$num_of_files) $showpage_end= $num_of_files; } else { $showpage_start= 0; $showpage_end= $num_of_files; } |
| |||
// determine sort order $sortorder=($sorttypenow == 'asc' ? SORT_ASC : SORT_DESC); $num_of_files=( isset ($file['name']) ? count($file['name']) : 0); if ($num_of_files>0) { // sort files by selected order sortfileorder($sortbynow,$sortorder,$file); } // determine pagination if ($tinybrowser['pagination']>0) { [[#variable47bd47a0]]=($showpagenow ? ($_REQUEST['showpage']*$tinybrowser['pagination'])-$tinybrowser['pagination'] : 0); [[#variable50f18b40]]= [[#variable47bd47a0]]+$tinybrowser['pagination']; if ( [[#variable50f18b40]]>$num_of_files) [[#variable50f18b40]]=$num_of_files; } else { [[#variable47bd47a0]]=0; [[#variable50f18b40]]=$num_of_files; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#47bd47a0]] | $showpagestart |
1 | 2 | [[#47bd47a0]] | $showpage_start |
2 | 1 | [[#50f18b40]] | $showpageend |
2 | 2 | [[#50f18b40]] | $showpage_end |