CloneSet303


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16260.967statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1978
components/com_contact/views/contact/view.html.php
21671
components/com_users/views/profile/view.html.php
Clone Instance
1
Line Count
9
Source Line
78
Source File
components/com_contact/views/contact/view.html.php

                // Set the document page title
                // because the application sets a default page title, we need to get it
                // right from the menu item itself
                if (is_object($menu)
                    &&                  isset ($menu->query['view'])
                    &&                                                 $menu->query['view'] == 'contact'
                    &&                                                                                      isset ($menu->query['id'])
                    &&                                                                                                                   $menu->query['id'] == $contact->id) {
                        $menu_params=  new JParameter($menu->params);
                        if (!$menu_params->get('page_title')) {
                                $pparams->set('page_title',     $contact->name);
                              }
                      }
                else   {
                        $pparams->set('page_title',     $contact->name);
                      }
                $document->setTitle($pparams->get('page_title'));


Clone Instance
2
Line Count
16
Source Line
71
Source File
components/com_users/views/profile/view.html.php

                // Set the page title if it has not been set already.
                if (is_object($menu)
                    &&                  isset ($menu->query['view'])
                    &&                                                 $menu->query['view'] == 'profile'
                    &&                                                                                      isset ($menu->query['profile'])
                    &&                                                                                                                        $menu->query['profile'] == $data->id) {
                        $mparams=  new JParameter($menu->params);

                        // If a page title has not been set, set one.
                        if (!$mparams->get('page_title')) {
                                $params->set('page_title', $data->name);
                              }
                      }
                else {
                        $params->set('page_title', $data->name);
                      }
                // Set the document title.
                $this->document->setTitle($params->get('page_title'));


Clone AbstractionParameter Count: 6Parameter Bindings

// Set the page title if it has not been set already.
// Set the document page title
// because the application sets a default page title, we need to get it
// right from the menu item itself
if (is_object($menu)
    && isset ($menu->query['view'])
    && $menu->query['view'] == [[#variable3f785420]]
    && isset ($menu->query[ [[#variable3f7853c0]]])
    && $menu->query[ [[#variable3f7853c0]]] == [[#variable3f785360]]->id) {
   [[#variable3f7852a0]]=new JParameter($menu->params);
  // If a page title has not been set, set one.
  if (! [[#variable3f7852a0]]->get('page_title')) {
     [[#variable3f785220]]->set('page_title', [[#variable3f785360]]->name);
  }
}
else {
   [[#variable3f785220]]->set('page_title', [[#variable3f785360]]->name);
}
 [[#variable3f785240]]->setTitle( [[#variable3f785220]]->get('page_title'));
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#3f785420]]
'profile' 
12[[#3f785420]]
'contact' 
21[[#3f7853c0]]
'profile' 
22[[#3f7853c0]]
'id' 
31[[#3f785360]]
$data 
32[[#3f785360]]
$contact 
41[[#3f7852a0]]
$mparams 
42[[#3f7852a0]]
$menu_params 
51[[#3f785220]]
$params 
52[[#3f785220]]
$pparams 
61[[#3f785240]]
// Set the document title.
$this->document 
62[[#3f785240]]
$document