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

@@ 234-244 (lines=11) @@
231
     *
232
     * @since 0.1.0
233
     */
234
    public function removeSubscriber ($user_id)
235
    {
236
        if ($user_id instanceof PulseUser)
237
        {
238
            $user_id = $user_id->getId();
239
        }
240
241
        $url = sprintf("%s/%d/subscribers/%d.json", self::apiEndpoint(), $this->getId(), $user_id);
242
243
        self::sendDelete($url);
244
    }
245
246
    // =================================================================================================================
247
    //   Columns functions