CloneSet806


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15201.000class_member_list[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11521
administrator/components/com_media/helpers/media.php
21521
components/com_media/helpers/media.php
Clone Instance
1
Line Count
15
Source Line
21
Source File
administrator/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));
              }


Clone Instance
2
Line Count
15
Source Line
21
Source File
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));
              }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None