Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 3 | 0.961 | statement_sequence |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 60 | libraries/joomla/utilities/string.php |
2 | 4 | 120 | libraries/joomla/utilities/string.php |
| ||||
if ($offset === FALSE) { return mb_strpos($str, $search); } else { return mb_strpos($str, $search, $offset); } |
| ||||
if ($length === FALSE) { return mb_substr($str, $offset); } else { return mb_substr($str, $offset, $length); } |
| |||
if ( [[#variable233061a0]]=== FALSE) { return [[#variable233152a0]]($str, [[#variable233061e0]]); } else { return [[#variable233152a0]]($str, [[#variable233061e0]], [[#variable233061a0]]); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#233061a0]] | $offset |
1 | 2 | [[#233061a0]] | $length |
2 | 1 | [[#233152a0]] | mb_strpos |
2 | 2 | [[#233152a0]] | mb_substr |
3 | 1 | [[#233061e0]] | $search |
3 | 2 | [[#233061e0]] | $offset |