Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 2 | 0 | 1.000 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 165 | libraries/joomla/form/form.php |
2 | 18 | 333 | libraries/joomla/form/form.php |
| ||||
// The data must be an object or array. if (!is_object($data) && !is_array($data)) { return FALSE; } // Convert objects to arrays. if (is_object($data)) { // Handle a JRegistry/JParameter object. if ($data instanceof JRegistry) { $data= $data->toArray(); } // Handle a JObject. elseif ($data instanceof JObject) { $data= $data->getProperties(); } // Handle other types of objects. else { $data= (array) $data; } } |
| ||||
// The data must be an object or array. if (!is_object($data) && !is_array($data)) { return FALSE; } // Convert objects to arrays. if (is_object($data)) { // Handle a JRegistry/JParameter object. if ($data instanceof JRegistry) { $data= $data->toArray(); } // Handle a JObject. elseif ($data instanceof JObject) { $data= $data->getProperties(); } // Handle other types of objects. else { $data= (array) $data; } } |
| |||
// The data must be an object or array. if (!is_object($data) && !is_array($data)) { return FALSE; } // Convert objects to arrays. if (is_object($data)) { // Handle a JRegistry/JParameter object. if ($data instanceof JRegistry) { $data=$data->toArray(); } // Handle a JObject. elseif ($data instanceof JObject) { $data=$data->getProperties(); } // Handle other types of objects. else { $data= (array) $data; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |