CloneSet141


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
33210.994class_member_list[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1332372
libraries/simplepie/simplepie.php
2335001
libraries/simplepie/simplepie.php
Clone Instance
1
Line Count
33
Source Line
2372
Source File
libraries/simplepie/simplepie.php

        function get_latitude() {

                if ($return=  $this->get_channel_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'lat'))
                {
                        return (double) $return[0]['data'];
                      }
                elseif (($return=  $this->get_channel_tags(SIMPLEPIE_NAMESPACE_GEORSS, 'point'))
                        &&                                                                          preg_match('/^((?:-)?[0-9]+(?:\\.[0-9]+)) ((?:-)?[0-9]+(?:\\.[0-9]+))$/',$return[0]['data'],$match)) {
                        return (double) $match[1];
                      }
                else
                {
                        return NULL;
                      }
              }

        function get_longitude() {

                if ($return=  $this->get_channel_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'long'))
                {
                        return (double) $return[0]['data'];
                      }
                elseif ($return=  $this->get_channel_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'lon'))
                {
                        return (double) $return[0]['data'];
                      }
                elseif (($return=  $this->get_channel_tags(SIMPLEPIE_NAMESPACE_GEORSS, 'point'))
                        &&                                                                          preg_match('/^((?:-)?[0-9]+(?:\\.[0-9]+)) ((?:-)?[0-9]+(?:\\.[0-9]+))$/',$return[0]['data'],$match)) {
                        return (double) $match[2];
                      }
                else
                {
                        return NULL;
                      }
              }


Clone Instance
2
Line Count
33
Source Line
5001
Source File
libraries/simplepie/simplepie.php

        function get_latitude() {

                if ($return=  $this->get_item_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'lat'))
                {
                        return (double) $return[0]['data'];
                      }
                elseif (($return=  $this->get_item_tags(SIMPLEPIE_NAMESPACE_GEORSS, 'point'))
                        &&                                                                       preg_match('/^((?:-)?[0-9]+(?:\\.[0-9]+)) ((?:-)?[0-9]+(?:\\.[0-9]+))$/',$return[0]['data'],$match)) {
                        return (double) $match[1];
                      }
                else
                {
                        return NULL;
                      }
              }

        function get_longitude() {

                if ($return=  $this->get_item_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'long'))
                {
                        return (double) $return[0]['data'];
                      }
                elseif ($return=  $this->get_item_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'lon'))
                {
                        return (double) $return[0]['data'];
                      }
                elseif (($return=  $this->get_item_tags(SIMPLEPIE_NAMESPACE_GEORSS, 'point'))
                        &&                                                                       preg_match('/^((?:-)?[0-9]+(?:\\.[0-9]+)) ((?:-)?[0-9]+(?:\\.[0-9]+))$/',$return[0]['data'],$match)) {
                        return (double) $match[2];
                      }
                else
                {
                        return NULL;
                      }
              }


Clone AbstractionParameter Count: 1Parameter Bindings

function get_latitude() {
  if ($return=$this-> [[#variable513109c0]](SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO,'lat')) {
    return (double) $return[0]['data'];
  }
  elseif (($return=$this-> [[#variable513109c0]](SIMPLEPIE_NAMESPACE_GEORSS,'point'))
          && preg_match('/^((?:-)?[0-9]+(?:\\.[0-9]+)) ((?:-)?[0-9]+(?:\\.[0-9]+))$/',$return[0]['data'],$match)) {
    return (double) $match[1];
  }
  else {
    return NULL;
  }
}

function get_longitude() {
  if ($return=$this-> [[#variable513109c0]](SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO,'long')) {
    return (double) $return[0]['data'];
  }
  elseif ($return=$this-> [[#variable513109c0]](SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO,'lon')) {
    return (double) $return[0]['data'];
  }
  elseif (($return=$this-> [[#variable513109c0]](SIMPLEPIE_NAMESPACE_GEORSS,'point'))
          && preg_match('/^((?:-)?[0-9]+(?:\\.[0-9]+)) ((?:-)?[0-9]+(?:\\.[0-9]+))$/',$return[0]['data'],$match)) {
    return (double) $match[2];
  }
  else {
    return NULL;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#513109c0]]
get_channel_tags 
12[[#513109c0]]
get_item_tags