CloneSet41


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
33020.955if_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13262
administrator/components/com_content/models/article.php
23436
administrator/components/com_content/models/article.php
33205
components/com_users/models/user.php
43298
components/com_users/models/user.php
53406
components/com_users/models/user.php
6331
installation/models/database.php
7343
installation/models/database.php
83435
libraries/joomla/access/permission/accesslevel.php
93441
libraries/joomla/access/permission/accesslevel.php
103447
libraries/joomla/access/permission/accesslevel.php
113453
libraries/joomla/access/permission/accesslevel.php
123533
libraries/joomla/access/permission/accesslevel.php
133540
libraries/joomla/access/permission/accesslevel.php
143547
libraries/joomla/access/permission/accesslevel.php
153618
libraries/joomla/access/permission/accesslevel.php
163624
libraries/joomla/access/permission/accesslevel.php
173630
libraries/joomla/access/permission/accesslevel.php
183383
libraries/joomla/access/permission/simplerule.php
193389
libraries/joomla/access/permission/simplerule.php
203395
libraries/joomla/access/permission/simplerule.php
213475
libraries/joomla/access/permission/simplerule.php
223496
libraries/joomla/access/permission/simplerule.php
233506
libraries/joomla/access/permission/simplerule.php
243581
libraries/joomla/access/permission/simplerule.php
253587
libraries/joomla/access/permission/simplerule.php
263477
libraries/joomla/database/table.php
273670
libraries/joomla/database/table.php
283287
libraries/joomla/database/table/content.php
29355
libraries/joomla/database/table/menutype.php
30385
libraries/joomla/database/table/usergroup.php
Clone Instance
1
Line Count
3
Source Line
262
Source File
administrator/components/com_content/models/article.php

                if (empty($pks)) {
                        $this->setError(JText::_('JError_No_items_selected'));
                        return FALSE;
                      }


Clone Instance
2
Line Count
3
Source Line
436
Source File
administrator/components/com_content/models/article.php

                if (empty($pks)) {
                        $this->setError(JText::_('JError_No_items_selected'));
                        return FALSE;
                      }


Clone Instance
3
Line Count
3
Source Line
205
Source File
components/com_users/models/user.php

                // Check for a user.
                if (empty($user)) {
                        $this->setError(JText::_('USERS_USER_NOT_FOUND'));
                        return FALSE;
                      }


Clone Instance
4
Line Count
3
Source Line
298
Source File
components/com_users/models/user.php

                // Make sure the user exists.
                if (empty($userId)) {
                        $this->setError(JText::_('USERS_USER_NOT_FOUND'));
                        return FALSE;
                      }


Clone Instance
5
Line Count
3
Source Line
406
Source File
components/com_users/models/user.php

                // Check for a user.
                if (empty($user)) {
                        $this->setError(JText::_('USERS_USER_NOT_FOUND'));
                        return FALSE;
                      }


Clone Instance
6
Line Count
3
Source Line
31
Source File
installation/models/database.php

                // Ensure a database type was selected.
                if (empty($options->db_type)) {
                        $this->setError(JText::_('validType'));
                        return FALSE;
                      }


Clone Instance
7
Line Count
3
Source Line
43
Source File
installation/models/database.php

                // Ensure that a database name was input.
                if (empty($options->db_name)) {
                        $this->setError(JText::_('emptyDBName'));
                        return FALSE;
                      }


Clone Instance
8
Line Count
3
Source Line
435
Source File
libraries/joomla/access/permission/accesslevel.php

                /*
                 * Validate the object values.
                 */

                // Verify an access section.
                if (empty($this->_section_id)) {
                        $this->setError(JText::_('Access_Section_Invalid'));
                        return FALSE;
                      }


Clone Instance
9
Line Count
3
Source Line
441
Source File
libraries/joomla/access/permission/accesslevel.php

                // Verify an access action.
                if (empty($this->_action_id)) {
                        $this->setError(JText::_('Access_Action_Invalid'));
                        return FALSE;
                      }


Clone Instance
10
Line Count
3
Source Line
447
Source File
libraries/joomla/access/permission/accesslevel.php

                // Verify an access assetgroup.
                if (empty($this->_asset_group_id)) {
                        $this->setError(JText::_('Access_Asset_Group_Invalid'));
                        return FALSE;
                      }


Clone Instance
11
Line Count
3
Source Line
453
Source File
libraries/joomla/access/permission/accesslevel.php

                // Verify an access rule.
                if (empty($this->_rule_id)) {
                        $this->setError(JText::_('Access_Rule_Invalid'));
                        return FALSE;
                      }


Clone Instance
12
Line Count
3
Source Line
533
Source File
libraries/joomla/access/permission/accesslevel.php

                if (empty($this->_section_id)) {
                        $this->setError(JText::_('Access_Section_Invalid'));
                        return FALSE;
                      }


Clone Instance
13
Line Count
3
Source Line
540
Source File
libraries/joomla/access/permission/accesslevel.php

                if (empty($this->_action_id)) {
                        $this->setError(JText::_('Access_Action_Invalid'));
                        return FALSE;
                      }


Clone Instance
14
Line Count
3
Source Line
547
Source File
libraries/joomla/access/permission/accesslevel.php

                if (empty($this->_asset_group_id)) {
                        $this->setError(JText::_('Access_Asset_Group_Invalid'));
                        return FALSE;
                      }


Clone Instance
15
Line Count
3
Source Line
618
Source File
libraries/joomla/access/permission/accesslevel.php

                /*
                 * Validate the object values.
                 */

                // Verify an access section.
                if (empty($this->_section_id)) {
                        $this->setError(JText::_('Access_Section_Invalid'));
                        return FALSE;
                      }


Clone Instance
16
Line Count
3
Source Line
624
Source File
libraries/joomla/access/permission/accesslevel.php

                // Verify an access action.
                if (empty($this->_action_id)) {
                        $this->setError(JText::_('Access_Action_Invalid'));
                        return FALSE;
                      }


Clone Instance
17
Line Count
3
Source Line
630
Source File
libraries/joomla/access/permission/accesslevel.php

                // Verify an access assetgroup.
                if (empty($this->_asset_group_id)) {
                        $this->setError(JText::_('Access_Asset_Group_Invalid'));
                        return FALSE;
                      }


Clone Instance
18
Line Count
3
Source Line
383
Source File
libraries/joomla/access/permission/simplerule.php

                /*
                 * Validate the object values.
                 */

                // Verify an access section.
                if (empty($this->_section_id)) {
                        $this->setError(JText::_('Access_Section_Invalid'));
                        return FALSE;
                      }


Clone Instance
19
Line Count
3
Source Line
389
Source File
libraries/joomla/access/permission/simplerule.php

                // Verify an access action.
                if (empty($this->_action_id)) {
                        $this->setError(JText::_('Access_Action_Invalid'));
                        return FALSE;
                      }


Clone Instance
20
Line Count
3
Source Line
395
Source File
libraries/joomla/access/permission/simplerule.php

                // Verify an access rule.
                if (empty($this->_rule_id)) {
                        $this->setError(JText::_('Access_Rule_Invalid'));
                        return FALSE;
                      }


Clone Instance
21
Line Count
3
Source Line
475
Source File
libraries/joomla/access/permission/simplerule.php

                if (empty($this->_action_id)) {
                        $this->setError(JText::_('Access_Action_Invalid'));
                        return FALSE;
                      }


Clone Instance
22
Line Count
3
Source Line
496
Source File
libraries/joomla/access/permission/simplerule.php

                if (empty($this->_section_id)) {
                        $this->setError(JText::_('Access_Section_Invalid'));
                        return FALSE;
                      }


Clone Instance
23
Line Count
3
Source Line
506
Source File
libraries/joomla/access/permission/simplerule.php

                        if (empty($this->_asset_id)) {
                                $this->setError(JText::_('Access_Asset_Invalid'));
                                return FALSE;
                              }


Clone Instance
24
Line Count
3
Source Line
581
Source File
libraries/joomla/access/permission/simplerule.php

                /*
                 * Validate the object values.
                 */

                // Verify an access section.
                if (empty($this->_section_id)) {
                        $this->setError(JText::_('Access_Section_Invalid'));
                        return FALSE;
                      }


Clone Instance
25
Line Count
3
Source Line
587
Source File
libraries/joomla/access/permission/simplerule.php

                // Verify an access action.
                if (empty($this->_action_id)) {
                        $this->setError(JText::_('Access_Action_Invalid'));
                        return FALSE;
                      }


Clone Instance
26
Line Count
3
Source Line
477
Source File
libraries/joomla/database/table.php

                // Make sure the section is valid.
                if (empty($sectionId)) {
                        $this->setError(JText::_('Access_Section_Invalid'));
                        return FALSE;
                      }


Clone Instance
27
Line Count
3
Source Line
670
Source File
libraries/joomla/database/table.php

                // Make sure the section is valid.
                if (empty($sectionId)) {
                        $this->setError(JText::_('Access_Section_Invalid'));
                        return FALSE;
                      }


Clone Instance
28
Line Count
3
Source Line
287
Source File
libraries/joomla/database/table/content.php

                /*
                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;
                      }


Clone Instance
29
Line Count
3
Source Line
55
Source File
libraries/joomla/database/table/menutype.php

                if (empty($this->menutype)) {
                        $this->setError(JText::_('Menu_Error_Menutype_empty'));
                        return FALSE;
                      }


Clone Instance
30
Line Count
3
Source Line
85
Source File
libraries/joomla/database/table/usergroup.php

                // Validate the section.
                if (empty($this->section_id)) {
                        $this->setError(JText::_('Usergroup must have a section'));
                        return FALSE;
                      }


Clone AbstractionParameter Count: 2Parameter Bindings

// 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4cf16de0]]
$this->_asset_group_id 
12[[#4cf16de0]]
$this->_action_id 
13[[#4cf16de0]]
$this->_section_id 
14[[#4cf16de0]]
$pks 
15[[#4cf16de0]]
$this->_rule_id 
16[[#4cf16de0]]
$userId 
17[[#4cf16de0]]
$user 
18[[#4cf16de0]]
$sectionId 
19[[#4cf16de0]]
$options->db_name 
110[[#4cf16de0]]
$options->db_type 
111[[#4cf16de0]]
$this->_asset_id 
112[[#4cf16de0]]
$this->title 
113[[#4cf16de0]]
$this->menutype 
114[[#4cf16de0]]
$this->section_id 
115[[#4cf16de0]]
$this->_action_id 
116[[#4cf16de0]]
$this->_section_id 
117[[#4cf16de0]]
$this->_section_id 
118[[#4cf16de0]]
$this->_action_id 
119[[#4cf16de0]]
$this->_section_id 
120[[#4cf16de0]]
$this->_action_id 
121[[#4cf16de0]]
$this->_action_id 
122[[#4cf16de0]]
$this->_asset_group_id 
123[[#4cf16de0]]
$pks 
124[[#4cf16de0]]
$this->_section_id 
125[[#4cf16de0]]
$this->_section_id 
126[[#4cf16de0]]
$this->_action_id 
127[[#4cf16de0]]
$user 
128[[#4cf16de0]]
$this->_asset_group_id 
129[[#4cf16de0]]
$this->_rule_id 
130[[#4cf16de0]]
$sectionId 
21[[#512524e0]]
'Access_Asset_Group_Invalid' 
22[[#512524e0]]
'Access_Action_Invalid' 
23[[#512524e0]]
'Access_Section_Invalid' 
24[[#512524e0]]
'JError_No_items_selected' 
25[[#512524e0]]
'Access_Rule_Invalid' 
26[[#512524e0]]
'USERS_USER_NOT_FOUND' 
27[[#512524e0]]
'USERS_USER_NOT_FOUND' 
28[[#512524e0]]
'Access_Section_Invalid' 
29[[#512524e0]]
'emptyDBName' 
210[[#512524e0]]
'validType' 
211[[#512524e0]]
'Access_Asset_Invalid' 
212[[#512524e0]]
'Article must have a title' 
213[[#512524e0]]
'Menu_Error_Menutype_empty' 
214[[#512524e0]]
'Usergroup must have a section' 
215[[#512524e0]]
'Access_Action_Invalid' 
216[[#512524e0]]
'Access_Section_Invalid' 
217[[#512524e0]]
'Access_Section_Invalid' 
218[[#512524e0]]
'Access_Action_Invalid' 
219[[#512524e0]]
'Access_Section_Invalid' 
220[[#512524e0]]
'Access_Action_Invalid' 
221[[#512524e0]]
'Access_Action_Invalid' 
222[[#512524e0]]
'Access_Asset_Group_Invalid' 
223[[#512524e0]]
'JError_No_items_selected' 
224[[#512524e0]]
'Access_Section_Invalid' 
225[[#512524e0]]
'Access_Section_Invalid' 
226[[#512524e0]]
'Access_Action_Invalid' 
227[[#512524e0]]
'USERS_USER_NOT_FOUND' 
228[[#512524e0]]
'Access_Asset_Group_Invalid' 
229[[#512524e0]]
'Access_Rule_Invalid' 
230[[#512524e0]]
'Access_Section_Invalid'