CloneSet1118


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
3220.988statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13428
libraries/joomla/utilities/string.php
23454
libraries/joomla/utilities/string.php
Clone Instance
1
Line Count
3
Source Line
428
Source File
libraries/joomla/utilities/string.php

                //quote charlist for use in a characterclass
                $charlist=  preg_replace('!([\\\\\\-\\]\\[/^])!','\\\\${1}',$charlist);

                return preg_replace('/^['
                                    .     $charlist
                                    .               ']+/u','',$str);


Clone Instance
2
Line Count
3
Source Line
454
Source File
libraries/joomla/utilities/string.php

                //quote charlist for use in a characterclass
                $charlist=  preg_replace('!([\\\\\\-\\]\\[/^])!','\\\\${1}',$charlist);

                return preg_replace('/['
                                    .    $charlist
                                    .              ']+$/u','',$str);


Clone AbstractionParameter Count: 2Parameter Bindings

//quote charlist for use in a characterclass
$charlist=preg_replace('!([\\\\\\-\\]\\[/^])!','\\\\${1}',$charlist);
return preg_replace( [[#variable24754200]]
                    . $charlist
                    .  [[#variable247541c0]],'',$str);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#24754200]]
'/[' 
12[[#24754200]]
'/^[' 
21[[#247541c0]]
']+$/u' 
22[[#247541c0]]
']+/u'