Code Duplication    Length = 10-13 lines in 2 locations

code/api/CampaignMonitorAPIConnector.php 2 locations

@@ 356-368 (lines=13) @@
353
        );
354
    }
355
356
    public function getTemplate($templatID)
357
    {
358
        $wrap = new CS_REST_Templates(
359
            $templatID,
360
            $this->getAuth()
361
        );
362
        $result = $wrap->get();
363
        return $this->returnResult(
364
            $result,
365
            "GET /api/v3/templates/{ID}",
366
            "Got Summary"
367
        );
368
    }
369
370
    /**
371
     *
@@ 461-470 (lines=10) @@
458
        );
459
    }
460
461
    public function deleteTemplate($templateID)
462
    {
463
        $wrap = new CS_REST_Templates($templateID, $this->getAuth());
464
        $result = $wrap->delete();
465
        return $this->returnResult(
466
            $result,
467
            "DELETE /api/v3/templates/{ID}",
468
            "Deleted Template"
469
        );
470
    }
471
472
    /*******************************************************
473
     * lists