Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
33 | 2 | 1 | 0.994 | class_member_list[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 33 | 2372 | libraries/simplepie/simplepie.php |
2 | 33 | 5001 | 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; } } |
| ||||
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; } } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#513109c0]] | get_channel_tags |
1 | 2 | [[#513109c0]] | get_item_tags |