Code Duplication    Length = 11-11 lines in 2 locations

src/Pulse.php 1 location

@@ 556-566 (lines=11) @@
553
     *
554
     * @throws HttpException Removing a user failed; access the exception for more information.
555
     */
556
    public function removeSubscriber ($user_id)
557
    {
558
        if ($user_id instanceof PulseUser)
559
        {
560
            $user_id = $user_id->getId();
561
        }
562
563
        $url = sprintf("%s/%d/subscribers/%d.json", parent::apiEndpoint(), $this->getId(), $user_id);
564
565
        parent::sendDelete($url);
566
    }
567
568
    // ================================================================================================================
569
    //   Notes functions

src/PulseBoard.php 1 location

@@ 269-279 (lines=11) @@
266
     *
267
     * @since 0.1.0
268
     */
269
    public function removeSubscriber ($user_id)
270
    {
271
        if ($user_id instanceof PulseUser)
272
        {
273
            $user_id = $user_id->getId();
274
        }
275
276
        $url = sprintf("%s/%d/subscribers/%d.json", self::apiEndpoint(), $this->getId(), $user_id);
277
278
        self::sendDelete($url);
279
    }
280
281
    // =================================================================================================================
282
    //   Columns functions