Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 3 | 0.960 | if_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 196 | administrator/components/com_menus/models/fields/menutype.php |
2 | 5 | 218 | administrator/components/com_menus/models/fields/menutype.php |
| ||||
// Look for the first menu node off of the root node. if (!$menu= $xml->xpath('menu[1]')) { return FALSE; } else { $menu= $menu[0]; } |
| ||||
// Look for the first options node off of the menu node. if (!$optionsNode= $menu->xpath('options[1]')) { return FALSE; } else { $optionsNode= $optionsNode[0]; } |
| |||
// Look for the first options node off of the menu node. // Look for the first menu node off of the root node. if (! [[#variable5867f7e0]]= [[#variable5867f720]]->xpath( [[#variable5867f760]])) { return FALSE; } else { [[#variable5867f7e0]]= [[#variable5867f7e0]][0]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5867f7e0]] | $optionsNode |
1 | 2 | [[#5867f7e0]] | $menu |
2 | 1 | [[#5867f720]] | $menu |
2 | 2 | [[#5867f720]] | $xml |
3 | 1 | [[#5867f760]] | 'options[1]' |
3 | 2 | [[#5867f760]] | 'menu[1]' |