Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 3 | 0.972 | statement_block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 121 | libraries/joomla/application/component/model.php |
2 | 8 | 116 | libraries/joomla/database/table.php |
| ||||
{ require_once $path; if (!class_exists($modelClass)) { JError::raiseWarning(0, 'Model class ' . $modelClass . ' not found in file.'); return $result; } } |
| ||||
{ // Import the class file. require_once $path; // If we were unable to load the proper class, raise a warning and return false. if (!class_exists($tableClass)) { JError::raiseWarning(0, 'Table class ' . $tableClass . ' not found in file.'); return $false; } } |
| |||
{ // Import the class file. require_once $path; // If we were unable to load the proper class, raise a warning and return false. if (!class_exists( [[#variable20e46da0]])) { JError::raiseWarning(0, [[#variable20e46ce0]] . [[#variable20e46da0]] . ' not found in file.'); return [[#variable20e46c40]]; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#20e46da0]] | $tableClass |
1 | 2 | [[#20e46da0]] | $modelClass |
2 | 1 | [[#20e46ce0]] | 'Table class ' |
2 | 2 | [[#20e46ce0]] | 'Model class ' |
3 | 1 | [[#20e46c40]] | $false |
3 | 2 | [[#20e46c40]] | $result |