Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 3 | 2 | 0.975 | if_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 38 | libraries/phpxmlrpc/compat/version_compare.php |
2 | 4 | 44 | libraries/phpxmlrpc/compat/version_compare.php |
3 | 4 | 50 | libraries/phpxmlrpc/compat/version_compare.php |
| ||||
// Check input if (!is_scalar($version1)) { user_error('version_compare() expects parameter 1 to be string, ' . gettype($version1) . ' given', E_USER_WARNING); return; } |
| ||||
if (!is_scalar($version2)) { user_error('version_compare() expects parameter 2 to be string, ' . gettype($version2) . ' given', E_USER_WARNING); return; } |
| ||||
if (!is_scalar($operator)) { user_error('version_compare() expects parameter 3 to be string, ' . gettype($operator) . ' given', E_USER_WARNING); return; } |
| |||
// Check input if (!is_scalar( [[#variable24d5f360]])) { user_error( [[#variable24806420]] . gettype( [[#variable24d5f360]]) . ' given',E_USER_WARNING); return; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#24d5f360]] | $version1 |
1 | 2 | [[#24d5f360]] | $version2 |
1 | 3 | [[#24d5f360]] | $operator |
2 | 1 | [[#24806420]] | 'version_compare() expects parameter 1 to be string, ' |
2 | 2 | [[#24806420]] | 'version_compare() expects parameter 2 to be string, ' |
2 | 3 | [[#24806420]] | 'version_compare() expects parameter 3 to be string, ' |