Code Duplication    Length = 9-10 lines in 3 locations

src/PulseBoard.php 1 location

@@ 395-403 (lines=9) @@
392
    //   Board functions
393
    // =================================================================================================================
394
395
    public function archiveBoard ()
396
    {
397
        $this->checkInvalid();
398
399
        $url = sprintf("%s/%s.json", self::apiEndpoint(), $this->getId());
400
        self::sendDelete($url);
401
402
        $this->deletedObject = true;
403
    }
404
405
    public static function createBoard ($name, $userId, $description = NULL)
406
    {

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

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