Code Duplication    Length = 7-8 lines in 2 locations

code/control/GoogleMapDataResponse.php 2 locations

@@ 326-333 (lines=8) @@
323
     *
324
     * @return String (XML)
325
     */
326
    public function showpagepointsmapxml($request)
327
    {
328
        $data = GoogleMapLocationsObject::get()->filter(array("ParentID" => $this->owner->ID));
329
        if ($data->count()) {
330
            return $this->makeXMLData(null, $data, $this->title, $this->title." "._t("GoogleMap.MAP", "map"));
331
        }
332
        return $this->showemptymap($request);
333
    }
334
335
    /**
336
     * @param SS_HTTPRequest
@@ 340-346 (lines=7) @@
337
     *
338
     * @return String (XML)
339
     */
340
    public function showchildpointsmapxml($request)
341
    {
342
        if ($children = $this->owner->getChildrenOfType($this->owner, null)) {
343
            return $this->makeXMLData($children, null, $this->title, $this->title." "._t("GoogleMap.MAP", "map"));
344
        }
345
        return $this->showemptymap($request);
346
    }
347
348
    /**
349
     * @param SS_HTTPRequest