Code Duplication    Length = 9-10 lines in 3 locations

src/PulseUpdate.php 1 location

@@ 279-287 (lines=9) @@
276
     *
277
     * @throws InvalidObjectException This PulseUpdate as already been deleted
278
     */
279
    public function deleteUpdate ()
280
    {
281
        $this->checkInvalid();
282
283
        $url = sprintf("%s/%d.json", self::apiEndpoint(), $this->getId());
284
        self::sendDelete($url);
285
286
        $this->deletedObject = true;
287
    }
288
289
    // =================================================================================================================
290
    //   Liking functions

src/Pulse.php 1 location

@@ 277-286 (lines=10) @@
274
     * @api
275
     * @throws \allejo\DaPulse\Exceptions\InvalidObjectException
276
     */
277
    public function deletePulse ()
278
    {
279
        $this->checkInvalid();
280
281
        $deleteURL = sprintf("%s/%d.json", self::apiEndpoint(), $this->getId());
282
283
        self::sendDelete($deleteURL);
284
285
        $this->deletedObject = true;
286
    }
287
288
    public function duplicatePulse ($groupId = NULL, $ownerId = NULL)
289
    {

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
    {