CloneSet85


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
37220.962statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
137111
components/com_content/views/category/view.html.php
23949
components/com_newsfeeds/views/category/view.html.php
Clone Instance
1
Line Count
37
Source Line
111
Source File
components/com_content/views/category/view.html.php

                // Set page title per category
                // because the application sets a default page title, we need to get it
                // right from the menu item itself
                if (is_object($menu)) {
                        $menu_params=  new JParameter($menu->params);
                        if (!$menu_params->get('page_title')) {
                                $params->set('page_title',      $category->title);
                              }
                      }
                else   {
                        $params->set('page_title',      $category->title);
                      }
                $document->setTitle($params->get('page_title'));
                //set breadcrumbs
                $pathwaycat=  $category;
                $path=  array();
                if (is_object($menu)
                    &&                  $menu->query['id'] != $category->id) {
                        $path[]=  array($pathwaycat->title);
                        $pathwaycat=  $pathwaycat->getParent();
                        while ($pathwaycat->id != $menu->query['id'])
                        {
                                $path[]=  array( $pathwaycat->title ,$pathwaycat->slug
                                               );
                                $pathwaycat=  $pathwaycat->getParent();
                              }
                        $path=  array_reverse($path);
                        foreach ($path as $element)
                        {
                                if ( isset ($element[1]))
                                {
                                        $pathway->addItem($element[0], 'index.php?option=com_content&view=category&id='
                                                                       .                                                $element[1]);
                                      }
                                else   {
                                        $pathway->addItem($element[0], '');
                                      }
                              }
                      }
                // Prepare category description
                $category->description = JHtml::_('content.prepare', $category->description);
                $params->def('date_format',     JText::_('DATE_FORMAT_LC1'));


Clone Instance
2
Line Count
39
Source Line
49
Source File
components/com_newsfeeds/views/category/view.html.php

                // because the application sets a default page title, we need to get it
                // right from the menu item itself
                if (is_object($menu)) {
                        $menu_params=  new JParameter($menu->params);
                        if (!$menu_params->get('page_title')) {
                                $params->set('page_title',      $category->title);
                              }
                      }
                else   {
                        $params->set('page_title',      $category->title);
                      }
                $document->setTitle($params->get('page_title'));

                //set breadcrumbs
                $pathwaycat=  $category;
                $path=  array();
                if (is_object($menu)
                    &&                  $menu->query['id'] != $category->id) {
                        $path[]=  array($pathwaycat->title);
                        $pathwaycat=  $pathwaycat->getParent();
                        while ($pathwaycat->id != $menu->query['id'])
                        {
                                $path[]=  array( $pathwaycat->title ,$pathwaycat->slug
                                               );
                                $pathwaycat=  $pathwaycat->getParent();
                              }
                        $path=  array_reverse($path);
                        foreach ($path as $element)
                        {
                                if ( isset ($element[1]))
                                {
                                        $pathway->addItem($element[0], 'index.php?option=com_newsfeeds&view=category&id='
                                                                       .                                                  $element[1]);
                                      }
                                else   {
                                        $pathway->addItem($element[0], '');
                                      }
                              }
                      }
                // Prepare category description
                $category->description = JHtml::_('content.prepare', $category->description);
                $k=  0;


Clone AbstractionParameter Count: 2Parameter Bindings

// Set page title per category
// because the application sets a default page title, we need to get it
// right from the menu item itself
if (is_object($menu)) {
  $menu_params=new JParameter($menu->params);
  if (!$menu_params->get('page_title')) {
    $params->set('page_title',$category->title);
  }
}
else {
  $params->set('page_title',$category->title);
}
$document->setTitle($params->get('page_title'));
//set breadcrumbs
$pathwaycat=$category;
$path=array();
if (is_object($menu)
    && $menu->query['id'] != $category->id) {
  $path[]=array($pathwaycat->title);
  $pathwaycat=$pathwaycat->getParent();
  while ($pathwaycat->id != $menu->query['id']) {
    $path[]=array( $pathwaycat->title ,
                   $pathwaycat->slug
                 );
    $pathwaycat=$pathwaycat->getParent();
  }
  $path=array_reverse($path);
  foreach ($path as $element) {
    if ( isset ($element[1])) {
      $pathway->addItem($element[0], [[#variable46632940]]
                                    . $element[1]);
    }
    else {
      $pathway->addItem($element[0],'');
    }
  }
}
// Prepare category description
$category->description =JHtml::_('content.prepare',$category->description);
 [[#variable511e3f20]];
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#46632940]]
'index.php?option=com_content&view=category&id=' 
12[[#46632940]]
'index.php?option=com_newsfeeds&view=category&id=' 
21[[#511e3f20]]
$params->def('date_format',JText::_('DATE_FORMAT_LC1')) 
22[[#511e3f20]]
$k=0