Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 6 | 0.967 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 78 | components/com_contact/views/contact/view.html.php |
2 | 16 | 71 | components/com_users/views/profile/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')); |
| ||||
// 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')); |
| |||
// 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#3f785420]] | 'profile' |
1 | 2 | [[#3f785420]] | 'contact' |
2 | 1 | [[#3f7853c0]] | 'profile' |
2 | 2 | [[#3f7853c0]] | 'id' |
3 | 1 | [[#3f785360]] | $data |
3 | 2 | [[#3f785360]] | $contact |
4 | 1 | [[#3f7852a0]] | $mparams |
4 | 2 | [[#3f7852a0]] | $menu_params |
5 | 1 | [[#3f785220]] | $params |
5 | 2 | [[#3f785220]] | $pparams |
6 | 1 | [[#3f785240]] | // Set the document title. $this->document |
6 | 2 | [[#3f785240]] | $document |