Code Duplication    Length = 10-10 lines in 2 locations

src/Api/Traits/BoardInvites.php 2 locations

@@ 46-55 (lines=10) @@
43
     * @param string|array $emails
44
     * @return bool
45
     */
46
    public function sendInviteByEmail($boardId, $emails)
47
    {
48
        $emails = is_array($emails) ? $emails : [$emails];
49
        $data = [
50
            "board_id" => $boardId,
51
            "emails" => $emails,
52
        ];
53
54
        return $this->post($data, UrlBuilder::RESOURCE_CREATE_EMAIL_INVITE);
55
    }
56
57
    /**
58
     * @param string $boardId
@@ 78-87 (lines=10) @@
75
     * @param string|array $userIds
76
     * @return bool
77
     */
78
    public function sendInviteByUserId($boardId, $userIds)
79
    {
80
        $userIds = is_array($userIds) ? $userIds : [$userIds];
81
        $data = [
82
            "board_id"         => $boardId,
83
            "invited_user_ids" => $userIds,
84
        ];
85
86
        return $this->post($data, UrlBuilder::RESOURCE_CREATE_USER_ID_INVITE);
87
    }
88
89
    /**
90
     * @param string $boardId