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/PulseBoard.php 1 location

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

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