CloneSet415


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
3350.980statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15118
administrator/components/com_search/helpers/search.php
23132
libraries/joomla/filter/filteroutput.php
33135
libraries/joomla/filter/filteroutput.php
Clone Instance
1
Line Count
5
Source Line
118
Source File
administrator/components/com_search/helpers/search.php

                // strips tags won't remove the actual jscript
                $text=  preg_replace("'<script[^>]*>.*?</script>'si", "", $text);
                $text=  preg_replace('/{.+?}/', '', $text);
                //$text = preg_replace('/<a\s+.*?href="([^"]+)"[^>]*>([^<]+)<\/a>/is','\2', $text);
                // replace line breaking tags with whitespace
                $text=  preg_replace("'<(br[^/>]*?/|hr[^/>]*?/|/(div|h[1-6]|li|p|td))>'si", ' ', $text);


Clone Instance
2
Line Count
3
Source Line
132
Source File
libraries/joomla/filter/filteroutput.php

                $text=  preg_replace("'<script[^>]*>.*?</script>'si", '', $text);
                $text=  preg_replace('/<a\\s+.*?href="([^"]+)"[^>]*>([^<]+)<\\/a>/is','\\2 (\\1)',$text);
                $text=  preg_replace('/<!--.+?-->/', '', $text);


Clone Instance
3
Line Count
3
Source Line
135
Source File
libraries/joomla/filter/filteroutput.php

                $text=  preg_replace('/{.+?}/', '', $text);
                $text=  preg_replace('/&nbsp;/', ' ', $text);
                $text=  preg_replace('/&amp;/', ' ', $text);


Clone AbstractionParameter Count: 5Parameter Bindings

// strips tags won't remove the actual jscript
$text=preg_replace( [[#variable22b88c80]],'',$text);
$text=preg_replace( [[#variable22b88ba0]], [[#variable22b88b60]],$text);
//$text = preg_replace('/<a\s+.*?href="([^"]+)"[^>]*>([^<]+)<\/a>/is','\2', $text);
// replace line breaking tags with whitespace
$text=preg_replace( [[#variable5244e9e0]], [[#variable22b889a0]],$text);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#22b88c80]]
'/{.+?}/' 
12[[#22b88c80]]
"'<script[^>]*>.*?</script>'si" 
13[[#22b88c80]]
"'<script[^>]*>.*?</script>'si" 
21[[#22b88ba0]]
'/&nbsp;/' 
22[[#22b88ba0]]
'/<a\\s+.*?href="([^"]+)"[^>]*>([^<]+)<\\/a>/is' 
23[[#22b88ba0]]
'/{.+?}/' 
31[[#22b88b60]]
' ' 
32[[#22b88b60]]
'\\2 (\\1)' 
33[[#22b88b60]]
'' 
41[[#5244e9e0]]
'/&amp;/' 
42[[#5244e9e0]]
'/<!--.+?-->/' 
43[[#5244e9e0]]
"'<(br[^/>]*?/|hr[^/>]*?/|/(div|h[1-6]|li|p|td))>'si" 
51[[#22b889a0]]
' ' 
52[[#22b889a0]]
'' 
53[[#22b889a0]]
' '