Code Duplication    Length = 9-10 lines in 2 locations

src/Pulse.php 1 location

@@ 258-267 (lines=10) @@
255
     * @api
256
     * @throws \allejo\DaPulse\Exceptions\InvalidObjectException
257
     */
258
    public function deletePulse ()
259
    {
260
        $this->checkInvalid();
261
262
        $deleteURL = sprintf("%s/%d.json", self::apiEndpoint(), $this->getId());
263
264
        self::sendDelete($deleteURL);
265
266
        $this->deletedObject = true;
267
    }
268
269
    public function duplicatePulse ($group_id = null, $owner_id = null)
270
    {

src/PulseBoard.php 1 location

@@ 441-449 (lines=9) @@
438
    //   Board functions
439
    // ================================================================================================================
440
441
    public function archiveBoard ()
442
    {
443
        $this->checkInvalid();
444
445
        $url = sprintf("%s/%s.json", parent::apiEndpoint(), $this->getId());
446
        self::sendDelete($url);
447
448
        $this->deletedObject = true;
449
    }
450
451
    public static function createBoard ($name, $user_id, $description = NULL)
452
    {