Code Duplication    Length = 9-10 lines in 3 locations

src/PulseBoard.php 1 location

@@ 421-429 (lines=9) @@
418
    //   Board functions
419
    // =================================================================================================================
420
421
    public function archiveBoard ()
422
    {
423
        $this->checkInvalid();
424
425
        $url = sprintf("%s/%s.json", self::apiEndpoint(), $this->getId());
426
        self::sendDelete($url);
427
428
        $this->deletedObject = true;
429
    }
430
431
    public static function createBoard ($name, $userId, $description = NULL)
432
    {

src/PulseUpdate.php 1 location

@@ 309-317 (lines=9) @@
306
     *
307
     * @throws InvalidObjectException if this PulseUpdate has already been deleted
308
     */
309
    public function deleteUpdate ()
310
    {
311
        $this->checkInvalid();
312
313
        $url = sprintf("%s/%d.json", self::apiEndpoint(), $this->getId());
314
        self::sendDelete($url);
315
316
        $this->deletedObject = true;
317
    }
318
319
    // =================================================================================================================
320
    //   Liking functions

src/Pulse.php 1 location

@@ 307-316 (lines=10) @@
304
     * @api
305
     * @throws \allejo\DaPulse\Exceptions\InvalidObjectException
306
     */
307
    public function deletePulse ()
308
    {
309
        $this->checkInvalid();
310
311
        $deleteURL = sprintf("%s/%d.json", self::apiEndpoint(), $this->getId());
312
313
        self::sendDelete($deleteURL);
314
315
        $this->deletedObject = true;
316
    }
317
318
    public function duplicatePulse ($groupId = NULL, $ownerId = NULL)
319
    {