CloneSet184


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20220.990toplevel_statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
120328
plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/edit.php
220174
plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/tinybrowser.php
Clone Instance
1
Line Count
20
Source Line
328
Source File
plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/edit.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;
      }


Clone Instance
2
Line Count
20
Source Line
174
Source File
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)
        {
        $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;
      }


Clone AbstractionParameter Count: 2Parameter Bindings

// 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#47bd47a0]]
$showpagestart 
12[[#47bd47a0]]
$showpage_start 
21[[#50f18b40]]
$showpageend 
22[[#50f18b40]]
$showpage_end