Code Duplication    Length = 9-10 lines in 3 locations

src/Pulse.php 1 location

@@ 290-299 (lines=10) @@
287
     * @since 0.1.0
288
     * @throws \allejo\DaPulse\Exceptions\InvalidObjectException
289
     */
290
    public function deletePulse ()
291
    {
292
        $this->checkInvalid();
293
294
        $deleteURL = sprintf("%s/%d.json", self::apiEndpoint(), $this->getId());
295
        $this->jsonResponse = self::sendDelete($deleteURL);
296
        $this->assignResults();
297
298
        $this->deletedObject = true;
299
    }
300
301
    public function duplicatePulse ($groupId = NULL, $ownerId = NULL)
302
    {

src/PulseUpdate.php 1 location

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

src/PulseBoard.php 1 location

@@ 445-453 (lines=9) @@
442
     *
443
     * @throws InvalidObjectException if the object has already been deleted
444
     */
445
    public function archiveBoard ()
446
    {
447
        $this->checkInvalid();
448
449
        $url = sprintf("%s/%s.json", self::apiEndpoint(), $this->getId());
450
        self::sendDelete($url);
451
452
        $this->deletedObject = true;
453
    }
454
455
    /**
456
     * Create a new board