CloneSet460


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12201.000class_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112204
plugins/authentication/openid/Auth/OpenID/Parse.php
212100
plugins/authentication/openid/Auth/Yadis/ParseHTML.php
Clone Instance
1
Line Count
12
Source Line
204
Source File
plugins/authentication/openid/Auth/OpenID/Parse.php

    function removeQuotes($str) {

        $matches=  array();
        $double=  '/^"(.*)"$/';
        $single=  "/^\\'(.*)\\'\$/";

        if (preg_match($double, $str, $matches)) {
            return $matches[1];
          }
        else   if (preg_match($single, $str, $matches)) {
            return $matches[1];
          }
               else {
            return $str;
          }
      }


Clone Instance
2
Line Count
12
Source Line
100
Source File
plugins/authentication/openid/Auth/Yadis/ParseHTML.php

    /**
     * Strip single and double quotes off of a string, if they are
     * present.
     *
     * @access private
     * @param string $str The original string
     * @return string $new_str The new string with leading and
     * trailing quotes removed
     */
    function removeQuotes($str) {

        $matches=  array();
        $double=  '/^"(.*)"$/';
        $single=  "/^\\'(.*)\\'\$/";

        if (preg_match($double, $str, $matches)) {
            return $matches[1];
          }
        else   if (preg_match($single, $str, $matches)) {
            return $matches[1];
          }
               else {
            return $str;
          }
      }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
     * Strip single and double quotes off of a string, if they are
     * present.
     *
     * @access private
     * @param string $str The original string
     * @return string $new_str The new string with leading and
     * trailing quotes removed
     */
function removeQuotes($str) {
  $matches=array();
  $double='/^"(.*)"$/';
  $single="/^\\'(.*)\\'\$/";
  if (preg_match($double,$str,$matches)) {
    return $matches[1];
  }
  else if (preg_match($single,$str,$matches)) {
         return $matches[1];
       }
       else {
         return $str;
       }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None