Code Duplication    Length = 10-13 lines in 2 locations

code/api/CampaignMonitorAPIConnector.php 2 locations

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