Code Duplication    Length = 9-10 lines in 2 locations

src/MediaPress/ManageCommentReplies.php 1 location

@@ 39-47 (lines=9) @@
36
     *
37
     * @return \EasyWeChat\Support\Collection
38
     */
39
    public function replyComment($commentId, $content)
40
    {
41
        $params = array_merge($this->mediaPress(), [
42
            'user_comment_id' => $commentId,
43
            'content' => $content,
44
        ]);
45
46
        return $this->parseJSON('post', [self::API_REPLY_COMMENT, $params]);
47
    }
48
49
    /**
50
     * Delete a reply.

src/MediaPress/ManageComments.php 1 location

@@ 60-69 (lines=10) @@
57
     *
58
     * @return \EasyWeChat\Support\Collection
59
     */
60
    public function comments($begin, $count, $type = 0)
61
    {
62
        $params = array_merge($this->mediaPress(), [
63
            'begin' => $begin,
64
            'count' => $count,
65
            'type' => $type,
66
        ]);
67
68
        return $this->parseJSON('post', [self::API_LIST_COMMENT, $params]);
69
    }
70
71
    /**
72
     * Mark elect comment.