GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 16-16 lines in 2 locations

src/Api/TeamsApi.php 1 location

@@ 120-135 (lines=16) @@
117
     *
118
     * @return TeamMember|ResponseInterface
119
     */
120
    public function addTeamMember($teamId, $userId, $roles = '', $pathParams = [])
121
    {
122
        if (empty($teamId) || empty($userId)) {
123
            throw new InvalidArgumentException('Team ID or user ID can not be empty');
124
        }
125
126
        $body = [
127
            'team_id' => $teamId,
128
            'user_id' => $userId,
129
            'roles' => $roles,
130
        ];
131
132
        $response = $this->httpPost(sprintf('/teams/%s/members', $teamId), $body, $pathParams);
133
134
        return $this->handleResponse($response, TeamMember::class);
135
    }
136
137
    /**
138
     * Return the team members.

src/Api/ChannelsApi.php 1 location

@@ 197-212 (lines=16) @@
194
     *
195
     * @return ChannelMember|ResponseInterface
196
     */
197
    public function addChannelMember(string $channelId, string $userId, string $roles = '')
198
    {
199
        if (empty($channelId) || empty($userId)) {
200
            throw new InvalidArgumentException('Channel ID or user ID can not be empty');
201
        }
202
203
        $body = [
204
            'channel_id' => $channelId,
205
            'user_id' => $userId,
206
            'roles' => $roles,
207
        ];
208
209
        $response = $this->httpPost(sprintf('/channels/%s/members', $channelId), $body);
210
211
        return $this->handleResponse($response, ChannelMember::class);
212
    }
213
214
    /**
215
     * Remove a user from a channel.