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

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

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