Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 3 | 0.987 | foreach_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 570 | libraries/joomla/installer/adapters/component.php |
2 | 7 | 581 | libraries/joomla/installer/adapters/component.php |
| ||||
// Find files to copy foreach ($this->manifest->children() as $child) { if (is_a($child, 'JSimpleXMLElement') && $child->name() == 'files') { if ($this->parent->parseFiles($child, 0, $this->oldFiles) === FALSE) { // Install failed, rollback any changes $this->parent->abort(); return FALSE; } } } |
| ||||
foreach ($this->adminElement->children() as $child) { if (is_a($child, 'JSimpleXMLElement') && $child->name() == 'files') { if ($this->parent->parseFiles($child, 1, $this->oldAdminFiles) === FALSE) { // Install failed, rollback any changes $this->parent->abort(); return FALSE; } } } |
| |||
// Find files to copy foreach ($this-> [[#variable4afcebe0]]->children() as $child) { if (is_a($child,'JSimpleXMLElement') && $child->name() == 'files') { if ($this->parent->parseFiles($child, [[#variable4afceaa0]],$this-> [[#variable4afcea80]]) === FALSE) { // Install failed, rollback any changes $this->parent->abort(); return FALSE; } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4afcebe0]] | adminElement |
1 | 2 | [[#4afcebe0]] | manifest |
2 | 1 | [[#4afceaa0]] | 1 |
2 | 2 | [[#4afceaa0]] | 0 |
3 | 1 | [[#4afcea80]] | oldAdminFiles |
3 | 2 | [[#4afcea80]] | oldFiles |