| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 3 | 30 | 2 | 0.955 | if_statement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 3 | 262 | administrator/components/com_content/models/article.php |
| 2 | 3 | 436 | administrator/components/com_content/models/article.php |
| 3 | 3 | 205 | components/com_users/models/user.php |
| 4 | 3 | 298 | components/com_users/models/user.php |
| 5 | 3 | 406 | components/com_users/models/user.php |
| 6 | 3 | 31 | installation/models/database.php |
| 7 | 3 | 43 | installation/models/database.php |
| 8 | 3 | 435 | libraries/joomla/access/permission/accesslevel.php |
| 9 | 3 | 441 | libraries/joomla/access/permission/accesslevel.php |
| 10 | 3 | 447 | libraries/joomla/access/permission/accesslevel.php |
| 11 | 3 | 453 | libraries/joomla/access/permission/accesslevel.php |
| 12 | 3 | 533 | libraries/joomla/access/permission/accesslevel.php |
| 13 | 3 | 540 | libraries/joomla/access/permission/accesslevel.php |
| 14 | 3 | 547 | libraries/joomla/access/permission/accesslevel.php |
| 15 | 3 | 618 | libraries/joomla/access/permission/accesslevel.php |
| 16 | 3 | 624 | libraries/joomla/access/permission/accesslevel.php |
| 17 | 3 | 630 | libraries/joomla/access/permission/accesslevel.php |
| 18 | 3 | 383 | libraries/joomla/access/permission/simplerule.php |
| 19 | 3 | 389 | libraries/joomla/access/permission/simplerule.php |
| 20 | 3 | 395 | libraries/joomla/access/permission/simplerule.php |
| 21 | 3 | 475 | libraries/joomla/access/permission/simplerule.php |
| 22 | 3 | 496 | libraries/joomla/access/permission/simplerule.php |
| 23 | 3 | 506 | libraries/joomla/access/permission/simplerule.php |
| 24 | 3 | 581 | libraries/joomla/access/permission/simplerule.php |
| 25 | 3 | 587 | libraries/joomla/access/permission/simplerule.php |
| 26 | 3 | 477 | libraries/joomla/database/table.php |
| 27 | 3 | 670 | libraries/joomla/database/table.php |
| 28 | 3 | 287 | libraries/joomla/database/table/content.php |
| 29 | 3 | 55 | libraries/joomla/database/table/menutype.php |
| 30 | 3 | 85 | libraries/joomla/database/table/usergroup.php |
| ||||
if (empty($pks)) {
$this->setError(JText::_('JError_No_items_selected'));
return FALSE;
}
|
| ||||
if (empty($pks)) {
$this->setError(JText::_('JError_No_items_selected'));
return FALSE;
}
|
| ||||
// Check for a user.
if (empty($user)) {
$this->setError(JText::_('USERS_USER_NOT_FOUND'));
return FALSE;
}
|
| ||||
// Make sure the user exists.
if (empty($userId)) {
$this->setError(JText::_('USERS_USER_NOT_FOUND'));
return FALSE;
}
|
| ||||
// Check for a user.
if (empty($user)) {
$this->setError(JText::_('USERS_USER_NOT_FOUND'));
return FALSE;
}
|
| ||||
// Ensure a database type was selected.
if (empty($options->db_type)) {
$this->setError(JText::_('validType'));
return FALSE;
}
|
| ||||
// Ensure that a database name was input.
if (empty($options->db_name)) {
$this->setError(JText::_('emptyDBName'));
return FALSE;
}
|
| ||||
/*
* Validate the object values.
*/
// Verify an access section.
if (empty($this->_section_id)) {
$this->setError(JText::_('Access_Section_Invalid'));
return FALSE;
}
|
| ||||
// Verify an access action.
if (empty($this->_action_id)) {
$this->setError(JText::_('Access_Action_Invalid'));
return FALSE;
}
|
| ||||
// Verify an access assetgroup.
if (empty($this->_asset_group_id)) {
$this->setError(JText::_('Access_Asset_Group_Invalid'));
return FALSE;
}
|
| ||||
// Verify an access rule.
if (empty($this->_rule_id)) {
$this->setError(JText::_('Access_Rule_Invalid'));
return FALSE;
}
|
| ||||
if (empty($this->_section_id)) {
$this->setError(JText::_('Access_Section_Invalid'));
return FALSE;
}
|
| ||||
if (empty($this->_action_id)) {
$this->setError(JText::_('Access_Action_Invalid'));
return FALSE;
}
|
| ||||
if (empty($this->_asset_group_id)) {
$this->setError(JText::_('Access_Asset_Group_Invalid'));
return FALSE;
}
|
| ||||
/*
* Validate the object values.
*/
// Verify an access section.
if (empty($this->_section_id)) {
$this->setError(JText::_('Access_Section_Invalid'));
return FALSE;
}
|
| ||||
// Verify an access action.
if (empty($this->_action_id)) {
$this->setError(JText::_('Access_Action_Invalid'));
return FALSE;
}
|
| ||||
// Verify an access assetgroup.
if (empty($this->_asset_group_id)) {
$this->setError(JText::_('Access_Asset_Group_Invalid'));
return FALSE;
}
|
| ||||
/*
* Validate the object values.
*/
// Verify an access section.
if (empty($this->_section_id)) {
$this->setError(JText::_('Access_Section_Invalid'));
return FALSE;
}
|
| ||||
// Verify an access action.
if (empty($this->_action_id)) {
$this->setError(JText::_('Access_Action_Invalid'));
return FALSE;
}
|
| ||||
// Verify an access rule.
if (empty($this->_rule_id)) {
$this->setError(JText::_('Access_Rule_Invalid'));
return FALSE;
}
|
| ||||
if (empty($this->_action_id)) {
$this->setError(JText::_('Access_Action_Invalid'));
return FALSE;
}
|
| ||||
if (empty($this->_section_id)) {
$this->setError(JText::_('Access_Section_Invalid'));
return FALSE;
}
|
| ||||
if (empty($this->_asset_id)) {
$this->setError(JText::_('Access_Asset_Invalid'));
return FALSE;
}
|
| ||||
/*
* Validate the object values.
*/
// Verify an access section.
if (empty($this->_section_id)) {
$this->setError(JText::_('Access_Section_Invalid'));
return FALSE;
}
|
| ||||
// Verify an access action.
if (empty($this->_action_id)) {
$this->setError(JText::_('Access_Action_Invalid'));
return FALSE;
}
|
| ||||
// Make sure the section is valid.
if (empty($sectionId)) {
$this->setError(JText::_('Access_Section_Invalid'));
return FALSE;
}
|
| ||||
// Make sure the section is valid.
if (empty($sectionId)) {
$this->setError(JText::_('Access_Section_Invalid'));
return FALSE;
}
|
| ||||
/*
TODO: This filter is too rigorous,need to implement more configurable solution
// specific filters
$filter = & JFilterInput::getInstance(null, null, 1, 1);
$this->introtext = trim($filter->clean($this->introtext));
$this->fulltext = trim($filter->clean($this->fulltext));
*/
if (empty($this->title)) {
$this->setError(JText::_('Article must have a title'));
return FALSE;
}
|
| ||||
if (empty($this->menutype)) {
$this->setError(JText::_('Menu_Error_Menutype_empty'));
return FALSE;
}
|
| ||||
// Validate the section.
if (empty($this->section_id)) {
$this->setError(JText::_('Usergroup must have a section'));
return FALSE;
}
|
| |||
// Verify an access rule.
// Make sure the user exists.
// Check for a user.
// Make sure the section is valid.
// Ensure that a database name was input.
// Ensure a database type was selected.
/*
TODO: This filter is too rigorous,need to implement more configurable solution
// specific filters
$filter = & JFilterInput::getInstance(null, null, 1, 1);
$this->introtext = trim($filter->clean($this->introtext));
$this->fulltext = trim($filter->clean($this->fulltext));
*/
// Validate the section.
// Verify an access action.
/*
* Validate the object values.
*/
// Verify an access section.
// Verify an access assetgroup.
if (empty( [[#variable4cf16de0]])) {
$this->setError(JText::_( [[#variable512524e0]]));
return FALSE;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#4cf16de0]] | $this->_asset_group_id |
| 1 | 2 | [[#4cf16de0]] | $this->_action_id |
| 1 | 3 | [[#4cf16de0]] | $this->_section_id |
| 1 | 4 | [[#4cf16de0]] | $pks |
| 1 | 5 | [[#4cf16de0]] | $this->_rule_id |
| 1 | 6 | [[#4cf16de0]] | $userId |
| 1 | 7 | [[#4cf16de0]] | $user |
| 1 | 8 | [[#4cf16de0]] | $sectionId |
| 1 | 9 | [[#4cf16de0]] | $options->db_name |
| 1 | 10 | [[#4cf16de0]] | $options->db_type |
| 1 | 11 | [[#4cf16de0]] | $this->_asset_id |
| 1 | 12 | [[#4cf16de0]] | $this->title |
| 1 | 13 | [[#4cf16de0]] | $this->menutype |
| 1 | 14 | [[#4cf16de0]] | $this->section_id |
| 1 | 15 | [[#4cf16de0]] | $this->_action_id |
| 1 | 16 | [[#4cf16de0]] | $this->_section_id |
| 1 | 17 | [[#4cf16de0]] | $this->_section_id |
| 1 | 18 | [[#4cf16de0]] | $this->_action_id |
| 1 | 19 | [[#4cf16de0]] | $this->_section_id |
| 1 | 20 | [[#4cf16de0]] | $this->_action_id |
| 1 | 21 | [[#4cf16de0]] | $this->_action_id |
| 1 | 22 | [[#4cf16de0]] | $this->_asset_group_id |
| 1 | 23 | [[#4cf16de0]] | $pks |
| 1 | 24 | [[#4cf16de0]] | $this->_section_id |
| 1 | 25 | [[#4cf16de0]] | $this->_section_id |
| 1 | 26 | [[#4cf16de0]] | $this->_action_id |
| 1 | 27 | [[#4cf16de0]] | $user |
| 1 | 28 | [[#4cf16de0]] | $this->_asset_group_id |
| 1 | 29 | [[#4cf16de0]] | $this->_rule_id |
| 1 | 30 | [[#4cf16de0]] | $sectionId |
| 2 | 1 | [[#512524e0]] | 'Access_Asset_Group_Invalid' |
| 2 | 2 | [[#512524e0]] | 'Access_Action_Invalid' |
| 2 | 3 | [[#512524e0]] | 'Access_Section_Invalid' |
| 2 | 4 | [[#512524e0]] | 'JError_No_items_selected' |
| 2 | 5 | [[#512524e0]] | 'Access_Rule_Invalid' |
| 2 | 6 | [[#512524e0]] | 'USERS_USER_NOT_FOUND' |
| 2 | 7 | [[#512524e0]] | 'USERS_USER_NOT_FOUND' |
| 2 | 8 | [[#512524e0]] | 'Access_Section_Invalid' |
| 2 | 9 | [[#512524e0]] | 'emptyDBName' |
| 2 | 10 | [[#512524e0]] | 'validType' |
| 2 | 11 | [[#512524e0]] | 'Access_Asset_Invalid' |
| 2 | 12 | [[#512524e0]] | 'Article must have a title' |
| 2 | 13 | [[#512524e0]] | 'Menu_Error_Menutype_empty' |
| 2 | 14 | [[#512524e0]] | 'Usergroup must have a section' |
| 2 | 15 | [[#512524e0]] | 'Access_Action_Invalid' |
| 2 | 16 | [[#512524e0]] | 'Access_Section_Invalid' |
| 2 | 17 | [[#512524e0]] | 'Access_Section_Invalid' |
| 2 | 18 | [[#512524e0]] | 'Access_Action_Invalid' |
| 2 | 19 | [[#512524e0]] | 'Access_Section_Invalid' |
| 2 | 20 | [[#512524e0]] | 'Access_Action_Invalid' |
| 2 | 21 | [[#512524e0]] | 'Access_Action_Invalid' |
| 2 | 22 | [[#512524e0]] | 'Access_Asset_Group_Invalid' |
| 2 | 23 | [[#512524e0]] | 'JError_No_items_selected' |
| 2 | 24 | [[#512524e0]] | 'Access_Section_Invalid' |
| 2 | 25 | [[#512524e0]] | 'Access_Section_Invalid' |
| 2 | 26 | [[#512524e0]] | 'Access_Action_Invalid' |
| 2 | 27 | [[#512524e0]] | 'USERS_USER_NOT_FOUND' |
| 2 | 28 | [[#512524e0]] | 'Access_Asset_Group_Invalid' |
| 2 | 29 | [[#512524e0]] | 'Access_Rule_Invalid' |
| 2 | 30 | [[#512524e0]] | 'Access_Section_Invalid' |