Code Duplication    Length = 8-8 lines in 4 locations

src/MediaPress/ManageCommentReplies.php 1 location

@@ 56-63 (lines=8) @@
53
     *
54
     * @return \EasyWeChat\Support\Collection
55
     */
56
    public function deleteCommentReply($commentId)
57
    {
58
        $params = array_merge($this->mediaPress(), [
59
            'user_comment_id' => $commentId,
60
        ]);
61
62
        return $this->parseJSON('post', [self::API_DELETE_REPLY, $params]);
63
    }
64
}
65

src/MediaPress/ManageComments.php 3 locations

@@ 78-85 (lines=8) @@
75
     *
76
     * @return \EasyWeChat\Support\Collection
77
     */
78
    public function markElectComment($commentId)
79
    {
80
        $params = array_merge($this->mediaPress(), [
81
            'user_comment_id' => $commentId,
82
        ]);
83
84
        return $this->parseJSON('post', [self::API_MARK_ELECT, $params]);
85
    }
86
87
    /**
88
     * Unmark comment elect.
@@ 94-101 (lines=8) @@
91
     *
92
     * @return \EasyWeChat\Support\Collection
93
     */
94
    public function unmarkElectComment($commentId)
95
    {
96
        $params = array_merge($this->mediaPress(), [
97
            'user_comment_id' => $commentId,
98
        ]);
99
100
        return $this->parseJSON('post', [self::API_UNMARK_ELECT, $params]);
101
    }
102
103
    /**
104
     * Delete comment.
@@ 110-117 (lines=8) @@
107
     *
108
     * @return \EasyWeChat\Support\Collection
109
     */
110
    public function deleteComment($commentId)
111
    {
112
        $params = array_merge($this->mediaPress(), [
113
            'user_comment_id' => $commentId,
114
        ]);
115
116
        return $this->parseJSON('post', [self::API_DELETE_COMMENT, $params]);
117
    }
118
}
119