Code Duplication    Length = 9-10 lines in 3 locations

src/PulseUpdate.php 1 location

@@ 241-249 (lines=9) @@
238
     *
239
     * @throws InvalidObjectException This PulseUpdate as already been deleted
240
     */
241
    public function deleteUpdate ()
242
    {
243
        $this->checkInvalid();
244
245
        $url = sprintf("%s/%d.json", self::apiEndpoint(), $this->getId());
246
        self::sendDelete($url);
247
248
        $this->deletedObject = true;
249
    }
250
251
    // =================================================================================================================
252
    //   Liking functions

src/Pulse.php 1 location

@@ 246-255 (lines=10) @@
243
     * @api
244
     * @throws \allejo\DaPulse\Exceptions\InvalidObjectException
245
     */
246
    public function deletePulse ()
247
    {
248
        $this->checkInvalid();
249
250
        $deleteURL = sprintf("%s/%d.json", self::apiEndpoint(), $this->getId());
251
252
        self::sendDelete($deleteURL);
253
254
        $this->deletedObject = true;
255
    }
256
257
    public function duplicatePulse ($groupId = NULL, $ownerId = NULL)
258
    {

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
    {