Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 2 | 0.967 | statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 1036 | libraries/joomla/installer/adapters/component.php |
2 | 5 | 1089 | libraries/joomla/installer/adapters/component.php |
| ||||
// This works because exists will be zero (autoincr) // or the old component id $query= 'INSERT INTO #__components' . ' VALUES(' . $exists . ', ' . $db->Quote($db_name) . ', ' . $db->Quote($db_link) . ', ' . (int) $db_menuid . ',' . ' ' . (int) $db_parent . ', ' . $db->Quote($db_admin_menu_link) . ', ' . $db->Quote($db_admin_menu_alt) . ',' . ' ' . $db->Quote($db_option) . ', ' . (int) $db_ordering . ', ' . $db->Quote($db_admin_menu_img) . ',' . ' ' . (int) $db_iscore . ', ' . $db->Quote($db_params) . ', ' . (int) $db_enabled . ')'; |
| ||||
$query= 'INSERT INTO #__components' . ' VALUES("", ' . $db->Quote($db_name) . ', ' . $db->Quote($db_link) . ', ' . (int) $db_menuid . ',' . ' ' . (int) $db_parent . ', ' . $db->Quote($db_admin_menu_link) . ', ' . $db->Quote($db_admin_menu_alt) . ',' . ' ' . $db->Quote($db_option) . ', ' . (int) $db_ordering . ', ' . $db->Quote($db_admin_menu_img) . ',' . ' ' . (int) $db_iscore . ', ' . $db->Quote($db_params) . ', ' . (int) $db_enabled . ')'; |
| |||
// This works because exists will be zero (autoincr) // or the old component id $query= [[#variable40728500]] . [[#variable40728540]] . $db->Quote($db_name) . ', ' . $db->Quote($db_link) . ', ' . (int) $db_menuid . ',' . ' ' . (int) $db_parent . ', ' . $db->Quote($db_admin_menu_link) . ', ' . $db->Quote($db_admin_menu_alt) . ',' . ' ' . $db->Quote($db_option) . ', ' . (int) $db_ordering . ', ' . $db->Quote($db_admin_menu_img) . ',' . ' ' . (int) $db_iscore . ', ' . $db->Quote($db_params) . ', ' . (int) $db_enabled . ')'; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#40728500]] | 'INSERT INTO #__components' . ' VALUES(' . $exists |
1 | 2 | [[#40728500]] | 'INSERT INTO #__components' |
2 | 1 | [[#40728540]] | ', ' |
2 | 2 | [[#40728540]] | ' VALUES("", ' |