CloneSet30


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
52250.962php_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15241
templates/rhuk_milkyway/html/com_content/category/blog.php
25241
templates/rhuk_milkyway/html/com_content/section/blog.php
Clone Instance
1
Line Count
52
Source Line
41
Source File
templates/rhuk_milkyway/html/com_content/category/blog.php

<?php
$startIntroArticles=  $this->pagination->limitstart + $this->params->get('num_leading_articles');
$numIntroArticles=  $startIntroArticles+  $this->params->get('num_intro_articles');
if (($numIntroArticles != $startIntroArticles)
    &&                                            ($i<  $this->total)):  ;
                                                                         ?>
<tr>
  <td valign="top">
    <table width="100%" cellpadding="0" cellspacing="0">
      <tr>
<?php                   $divider=  '';
                        if ($this->params->def('multi_column_order', 0)):  // order across, like front page
                                for ($z=  0; $z<  $this->params->def('num_columns', 2); $z ++):
                                        if ($z>  0):  $divider=  " column_separator";
                                        endif;                                               ?>
<?php                                   $rows=  (int) ($this->params->get('num_intro_articles', 4)/  $this->params->get('num_columns'));
                                        $cols=  ($this->params->get('num_intro_articles', 4)%  $this->params->get('num_columns'));
                                        ?>
<td valign="top" width="<?php
                                                             echo intval(100/  $this->params->get('num_columns'));?>%" class="article_column<?php
                                                                           echo $divider;?>">
<?php
                                                $loop=  (($z<  $cols)
                                                         ?            1
                                                         :              0)+  $rows;
                                                for ($y=  0; $y<  $loop; $y ++):
                                                        $target=  $i+  ($y*  $this->params->get('num_columns'))+  $z;
                                                        if ($target<  $this->total
                                                            &&                        $target<  ($numIntroArticles)):
                                                                $this->item = &$this->getItem($target, $this->params);
                                                                echo $this->loadTemplate('item');
                                                        endif;
                                                endfor
                                                ;
                                                ?></td>
<?php
                                endfor
                                ;               $i=  $i+  $this->params->get('num_intro_articles');
                        else : // otherwise, order down, same as before (default behaviour)
                                for ($z=  0; $z<  $this->params->get('num_columns'); $z ++):
                                        if ($z>  0):  $divider=  " column_separator";
                                        endif;                                               ?>
<td valign="top" width="<?php                                         echo intval(100/  $this->params->get('num_columns'));?>%" class="article_column<?php echo $divider;?>">
<?php                                         for ($y=  0; $y<  ($this->params->get('num_intro_articles')/  $this->params->get('num_columns')); $y ++):
                                        if ($i<  $this->total
                                            &&                   $i<  ($numIntroArticles)):
                                                $this->item = &$this->getItem($i, $this->params);
                                                echo $this->loadTemplate('item');
                                                $i ++;
                                        endif;
                                              endfor
                                              ;
                                        ?>
</td>
<?php
                                endfor
                                ;
                        endif;
                       ?>
</tr>
</table>
</td>
</tr>
<?php
endif;       ?>


Clone Instance
2
Line Count
52
Source Line
41
Source File
templates/rhuk_milkyway/html/com_content/section/blog.php

<?php
$startIntroArticles=  $this->pagination->limitstart + $this->params->get('num_leading_articles');
$numIntroArticles=  $startIntroArticles+  $this->params->get('num_intro_articles', 4);
if (($numIntroArticles != $startIntroArticles)
    &&                                            ($i<  $this->total)):  ;
                                                                         ?>
<tr>
  <td valign="top">
    <table width="100%" cellpadding="0" cellspacing="0">
      <tr>
<?php                   $divider=  '';
                        if ($this->params->def('multi_column_order', 0)):  // order across, like front page
                        for ($z=  0; $z<  $this->params->def('num_columns', 2); $z ++):
                                if ($z>  0):  $divider=  " column_separator";
                                endif;                                               ?>
<?php                           $rows=  (int) ($this->params->get('num_intro_articles', 4)/  $this->params->get('num_columns'));
                                $cols=  ($this->params->get('num_intro_articles', 4)%  $this->params->get('num_columns'));
                                ?>
<td valign="top" width="<?php
                                                             echo intval(100/  $this->params->get('num_columns'));?>%" class="article_column<?php
                                                                           echo $divider;?>">
<?php
                                                $loop=  (($z<  $cols)
                                                         ?            1
                                                         :              0)+  $rows;
                                                for ($y=  0; $y<  $loop; $y ++):
                                                        $target=  $i+  ($y*  $this->params->get('num_columns'))+  $z;
                                                        if ($target<  $this->total
                                                            &&                        $target<  ($numIntroArticles)):
                                                                $this->item = &$this->getItem($target, $this->params);
                                                                echo $this->loadTemplate('item');
                                                        endif;
                                                endfor
                                                ;
                                                ?></td>
<?php
                        endfor
                        ;                       $i=  $i+  $this->params->get('num_intro_articles', 4);
                        else : // otherwise, order down, same as before (default behaviour)
                                for ($z=  0; $z<  $this->params->get('num_columns'); $z ++):
                                if ($z>  0):  $divider=  " column_separator";
                                endif;                                               ?>
<td valign="top" width="<?php                                 echo intval(100/  $this->params->get('num_columns'));?>%" class="article_column<?php echo $divider;?>">
<?php                                 for ($y=  0; $y<  ($this->params->get('num_intro_articles', 4)/  $this->params->get('num_columns')); $y ++):
                                        if ($i<  $this->total
                                            &&                   $i<  ($numIntroArticles)):
                                                $this->item = &$this->getItem($i, $this->params);
                                                echo $this->loadTemplate('item');
                                                $i ++;
                                        endif;
                                      endfor
                                      ; ?>
</td>
<?php
                                endfor
                                ;
                        endif;
                       ?>
</tr>
</table>
</td>
</tr>
<?php
endif;       ?>


Clone AbstractionParameter Count: 5Parameter Bindings

<?php
  $startIntroArticles=$this->pagination->limitstart +$this->params->get('num_leading_articles');
  $numIntroArticles=$startIntroArticles+$this->params->get( [[#variable52284980]]);
  if (($numIntroArticles != $startIntroArticles)
      && ($i<$this->total)):
    ;
    ?>
<tr>
  <td valign="top">
    <table width="100%" cellpadding="0" cellspacing="0">
      <tr>
<?php
    $divider='';
    if ($this->params->def('multi_column_order',0)): // order across, like front page
      for ($z=0; $z<$this->params->def('num_columns',2); $z ++):
        if ($z>0):
          $divider=" column_separator";
        endif;
        ?> [[#variable522848e0]]<?php
        $rows= (int) ($this->params->get('num_intro_articles',4)/$this->params->get('num_columns'));
        $cols=($this->params->get('num_intro_articles',4)%$this->params->get('num_columns'));
        ?>
<td valign="top" width="<?php
        echo intval(100/$this->params->get('num_columns'));
        ?>%" class="article_column<?php
        echo $divider;
        ?>">
<?php
        $loop=(($z<$cols)
               ? 1
               : 0)+$rows;
        for ($y=0; $y<$loop; $y ++):
          $target=$i+($y*$this->params->get('num_columns'))+$z;
          if ($target<$this->total
              && $target<($numIntroArticles)):
            $this->item = &$this->getItem($target,$this->params);
            echo $this->loadTemplate('item');
          endif;
        endfor
        ;
        ?> [[#variable52284840]]<?php
      endfor
      ;
      $i=$i+$this->params->get( [[#variable52284980]]);
    else : // otherwise, order down, same as before (default behaviour)
      for ($z=0; $z<$this->params->get('num_columns'); $z ++):
        if ($z>0):
          $divider=" column_separator";
        endif;
        ?> [[#variable52284860]]<?php
        echo intval(100/$this->params->get('num_columns'));
        ?>%" class="article_column<?php
        echo $divider;
        ?> [[#variable522848a0]]<?php
        for ($y=0; $y<($this->params->get( [[#variable52284980]])/$this->params->get('num_columns')); $y ++):
          if ($i<$this->total
              && $i<($numIntroArticles)):
            $this->item = &$this->getItem($i,$this->params);
            echo $this->loadTemplate('item');
            $i ++;
          endif;
        endfor
        ;
        ?>
</td>
<?php
      endfor
      ;
    endif;
    ?>
</tr>
</table>
</td>
</tr>
<?php
  endif;
?>
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#52284980]]
'num_intro_articles',4 
12[[#52284980]]
'num_intro_articles' 
21[[#522848e0]]
 
22[[#522848e0]]
 
31[[#52284840]]
</td> 
32[[#52284840]]
</td> 
41[[#52284860]]
<td valign="top" width=" 
42[[#52284860]]
<td valign="top" width=" 
51[[#522848a0]]
"> 
52[[#522848a0]]
">