Code Duplication    Length = 9-10 lines in 3 locations

src/PulseUpdate.php 1 location

@@ 319-327 (lines=9) @@
316
     *
317
     * @throws InvalidObjectException if this PulseUpdate has already been deleted
318
     */
319
    public function deleteUpdate ()
320
    {
321
        $this->checkInvalid();
322
323
        $url = sprintf("%s/%d.json", self::apiEndpoint(), $this->getId());
324
        self::sendDelete($url);
325
326
        $this->deletedObject = true;
327
    }
328
329
    // =================================================================================================================
330
    //   Liking functions

src/PulseBoard.php 1 location

@@ 460-468 (lines=9) @@
457
     *
458
     * @throws InvalidObjectException if the object has already been deleted
459
     */
460
    public function archiveBoard ()
461
    {
462
        $this->checkInvalid();
463
464
        $url = sprintf("%s/%s.json", self::apiEndpoint(), $this->getId());
465
        self::sendDelete($url);
466
467
        $this->deletedObject = true;
468
    }
469
470
    /**
471
     * Create a new board

src/Pulse.php 1 location

@@ 322-331 (lines=10) @@
319
     *
320
     * @throws InvalidObjectException
321
     */
322
    public function deletePulse ()
323
    {
324
        $this->checkInvalid();
325
326
        $deleteURL          = sprintf("%s/%d.json", self::apiEndpoint(), $this->getId());
327
        $this->jsonResponse = self::sendDelete($deleteURL);
328
        $this->assignResults();
329
330
        $this->deletedObject = true;
331
    }
332
333
    public function duplicatePulse ($groupId = null, $ownerId = null)
334
    {