CloneSet1711


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4220.980class_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1458
administrator/components/com_banners/helpers/banner.php
2470
administrator/components/com_banners/helpers/banner.php
Clone Instance
1
Line Count
4
Source Line
58
Source File
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;
              }


Clone Instance
2
Line Count
4
Source Line
70
Source File
administrator/components/com_banners/helpers/banner.php

        /**
         * Checks if a URL is a Flash file
         *
         * @param string
         * @return URL
         */
        function isFlash($url) {

                $result=  preg_match('#\\.swf$#i',$url);
                return $result;
              }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#51f4fe00]]
isFlash 
12[[#51f4fe00]]
isImage 
21[[#51f4fe40]]
'#\\.swf$#i' 
22[[#51f4fe40]]
'#(\\.bmp|\\.gif|\\.jpg|\\.jpeg|\\.png)$#i'