CloneSet1732


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
3220.980abstract_class_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1333
libraries/joomla/mail/helper.php
2345
libraries/joomla/mail/helper.php
Clone Instance
1
Line Count
3
Source Line
33
Source File
libraries/joomla/mail/helper.php

        /**
         * Cleans single line inputs.
         *
         * @static
         * @param       string  $value  String to be cleaned.
         * @return      string  Cleaned string.
         */
        public static

                      function cleanLine($value) {

                return trim(preg_replace('/(%0A|%0D|\\n+|\\r+)/i','',$value));
              }


Clone Instance
2
Line Count
3
Source Line
45
Source File
libraries/joomla/mail/helper.php

        /**
         * Cleans multi-line inputs.
         *
         * @static
         * @param       string  $value  Multi-line string to be cleaned.
         * @return      string  Cleaned multi-line string.
         */
        public static

                      function cleanText($value) {

                return trim(preg_replace('/(%0A|%0D|\\n+|\\r+)(content-type:|to:|cc:|bcc:)/i','',$value));
              }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * Cleans single line inputs.
         *
         * @static
         * @param       string  $value  String to be cleaned.
         * @return      string  Cleaned string.
         */
/**
         * Cleans multi-line inputs.
         *
         * @static
         * @param       string  $value  Multi-line string to be cleaned.
         * @return      string  Cleaned multi-line string.
         */
public static

             function [[#variable4850a9e0]]($value) {
               return trim(preg_replace( [[#variable4850a940]],'',$value));
             }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4850a9e0]]
cleanLine 
12[[#4850a9e0]]
cleanText 
21[[#4850a940]]
'/(%0A|%0D|\\n+|\\r+)/i' 
22[[#4850a940]]
'/(%0A|%0D|\\n+|\\r+)(content-type:|to:|cc:|bcc:)/i'