Code Duplication    Length = 10-10 lines in 2 locations

src/Api/Traits/BoardsInvites.php 2 locations

@@ 32-41 (lines=10) @@
29
     * @param string|array $emails
30
     * @return bool
31
     */
32
    public function sendInviteByEmail($boardId, $emails)
33
    {
34
        $emails = is_array($emails) ? $emails : [$emails];
35
        $data = [
36
            "board_id" => $boardId,
37
            "emails" => $emails,
38
        ];
39
40
        return $this->post($data, UrlBuilder::RESOURCE_CREATE_EMAIL_INVITE);
41
    }
42
43
    /**
44
     * @param string $boardId
@@ 64-73 (lines=10) @@
61
     * @param string|array $userIds
62
     * @return bool
63
     */
64
    public function sendInviteByUserId($boardId, $userIds)
65
    {
66
        $userIds = is_array($userIds) ? $userIds : [$userIds];
67
        $data = [
68
            "board_id"         => $boardId,
69
            "invited_user_ids" => $userIds,
70
        ];
71
72
        return $this->post($data, UrlBuilder::RESOURCE_CREATE_USER_ID_INVITE);
73
    }
74
75
    /**
76
     * @param string $boardId