Code Duplication    Length = 8-8 lines in 4 locations

catalog/includes/modules/header_tags/ht_mailchimp_360/MCAPI.class.php 4 locations

@@ 605-612 (lines=8) @@
602
     * @returnf string email the email address that reported abuse
603
     * @returnf string type an internal type generally specifying the orginating mail provider - may not be useful outside of filling report views
604
     */
605
    function campaignAbuseReports($cid, $since=NULL, $start=0, $limit=500) {
606
        $params = array();
607
        $params["cid"] = $cid;
608
        $params["since"] = $since;
609
        $params["start"] = $start;
610
        $params["limit"] = $limit;
611
        return $this->callServer("campaignAbuseReports", $params);
612
    }
613
614
    /**
615
     * Retrieve the text presented in our app for how a campaign performed and any advice we may have for you - best
@@ 678-685 (lines=8) @@
675
     * @returnf string email the email address that bounced
676
     * @returnf string message the entire bounce message received
677
     */
678
    function campaignBounceMessages($cid, $start=0, $limit=25, $since=NULL) {
679
        $params = array();
680
        $params["cid"] = $cid;
681
        $params["start"] = $start;
682
        $params["limit"] = $limit;
683
        $params["since"] = $since;
684
        return $this->callServer("campaignBounceMessages", $params);
685
    }
686
687
    /**
688
     * Retrieve the Ecommerce Orders tracked by campaignEcommAddOrder()
@@ 707-714 (lines=8) @@
704
     * @returnf order_date string the date the order was tracked - from the store if possible, otherwise the GMT time we recieved it
705
     * @returnf lines array containing detail of the order - product, category, quantity, item cost
706
     */
707
    function campaignEcommOrders($cid, $start=0, $limit=100, $since=NULL) {
708
        $params = array();
709
        $params["cid"] = $cid;
710
        $params["start"] = $start;
711
        $params["limit"] = $limit;
712
        $params["since"] = $since;
713
        return $this->callServer("campaignEcommOrders", $params);
714
    }
715
716
    /**
717
     * Get the URL to a customized VIP Report for the specified campaign and optionally send an email to someone with links to it. Note subsequent calls will overwrite anything already set for the same campign (eg, the password)
@@ 1355-1362 (lines=8) @@
1352
     * @returnf string campaign_id the unique id for the campaign that reporte was made against
1353
     * @returnf string type an internal type generally specifying the orginating mail provider - may not be useful outside of filling report views
1354
     */
1355
    function listAbuseReports($id, $start=0, $limit=500, $since=NULL) {
1356
        $params = array();
1357
        $params["id"] = $id;
1358
        $params["start"] = $start;
1359
        $params["limit"] = $limit;
1360
        $params["since"] = $since;
1361
        return $this->callServer("listAbuseReports", $params);
1362
    }
1363
1364
    /**
1365
     * Access the Growth History by Month for a given list.