Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 2 | 0.980 | class_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 58 | administrator/components/com_banners/helpers/banner.php |
2 | 4 | 70 | administrator/components/com_banners/helpers/banner.php |
| ||||
/** * Checks if a URL is an image * * @param string * @return URL */ function isImage($url) { $result= preg_match('#(\\.bmp|\\.gif|\\.jpg|\\.jpeg|\\.png)$#i',$url); return $result; } |
| ||||
/** * Checks if a URL is a Flash file * * @param string * @return URL */ function isFlash($url) { $result= preg_match('#\\.swf$#i',$url); return $result; } |
| |||
/** * Checks if a URL is a Flash file * * @param string * @return URL */ /** * Checks if a URL is an image * * @param string * @return URL */ function [[#variable51f4fe00]]($url) { $result=preg_match( [[#variable51f4fe40]],$url); return $result; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#51f4fe00]] | isFlash |
1 | 2 | [[#51f4fe00]] | isImage |
2 | 1 | [[#51f4fe40]] | '#\\.swf$#i' |
2 | 2 | [[#51f4fe40]] | '#(\\.bmp|\\.gif|\\.jpg|\\.jpeg|\\.png)$#i' |