Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 0 | 1.000 | class_member_list[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 21 | administrator/components/com_media/helpers/media.php |
2 | 15 | 21 | components/com_media/helpers/media.php |
| ||||
/** * Checks if the file is an image * @param string The filename * @return boolean */ function isImage($fileName) { static $imageTypes = 'xcf|odg|gif|jpg|png|bmp'; return preg_match( "/$imageTypes/i" ,$fileName); } /** * Checks if the file is an image * @param string The filename * @return boolean */ function getTypeIcon($fileName) { // Get file extension return strtolower(substr($fileName, strrpos($fileName, '.')+ 1)); } |
| ||||
/** * Checks if the file is an image * @param string The filename * @return boolean */ function isImage($fileName) { static $imageTypes = 'xcf|odg|gif|jpg|png|bmp'; return preg_match( "/$imageTypes/i" ,$fileName); } /** * Checks if the file is an image * @param string The filename * @return boolean */ function getTypeIcon($fileName) { // Get file extension return strtolower(substr($fileName, strrpos($fileName, '.')+ 1)); } |
| |||
/** * Checks if the file is an image * @param string The filename * @return boolean */ function isImage($fileName) { static $imageTypes = 'xcf|odg|gif|jpg|png|bmp'; return preg_match( "/$imageTypes/i" ,$fileName); } /** * Checks if the file is an image * @param string The filename * @return boolean */ function getTypeIcon($fileName) { // Get file extension return strtolower(substr($fileName,strrpos($fileName,'.')+1)); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |