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 = 24-30 lines in 3 locations

component/admin/vendor/joomla/github/src/Package/Orgs/Members.php 2 locations

@@ 76-105 (lines=30) @@
73
	 *
74
	 * @return boolean
75
	 */
76
	public function check($org, $user)
77
	{
78
		// Build the request path.
79
		$path = '/orgs/' . $org . '/members/' . $user;
80
81
		$response = $this->client->get($this->fetchUrl($path));
82
83
		switch ($response->code)
84
		{
85
			case 204 :
86
				// Requester is an organization member and user is a member.
87
				return true;
88
				break;
89
90
			case 404 :
91
				// Requester is an organization member and user is not a member.
92
				// Requester is not an organization member and is inquiring about themselves.
93
				return false;
94
				break;
95
96
			case 302 :
97
				// Requester is not an organization member.
98
				return false;
99
				break;
100
101
			default :
102
				throw new \UnexpectedValueException('Unexpected response code: ' . $response->code);
103
				break;
104
		}
105
	}
106
107
	/**
108
	 * Add a member.
@@ 169-192 (lines=24) @@
166
	 *
167
	 * @return boolean
168
	 */
169
	public function checkPublic($org, $user)
170
	{
171
		// Build the request path.
172
		$path = '/orgs/' . $org . '/public_members/' . $user;
173
174
		$response = $this->client->get($this->fetchUrl($path));
175
176
		switch ($response->code)
177
		{
178
			case 204 :
179
				// Response if user is a public member.
180
				return true;
181
				break;
182
183
			case 404 :
184
				// Response if user is not a public member.
185
				return false;
186
				break;
187
188
			default :
189
				throw new \UnexpectedValueException('Unexpected response code: ' . $response->code);
190
				break;
191
		}
192
	}
193
194
	/**
195
	 * Publicize a user’s membership.

component/admin/vendor/joomla/github/src/Package/Orgs/Teams.php 1 location

@@ 209-232 (lines=24) @@
206
	 * @throws  \UnexpectedValueException
207
	 * @deprecated  Use getTeamMembership() instead
208
	 */
209
	public function isMember($id, $user)
210
	{
211
		// Build the request path.
212
		$path = '/teams/' . $id . '/members/' . $user;
213
214
		$response = $this->client->get($this->fetchUrl($path));
215
216
		switch ($response->code)
217
		{
218
			case 204 :
219
				// Response if user is a member
220
				return true;
221
				break;
222
223
			case 404 :
224
				// Response if user is not a member
225
				return false;
226
				break;
227
228
			default :
229
				throw new \UnexpectedValueException('Unexpected response code: ' . $response->code);
230
				break;
231
		}
232
	}
233
234
	/**
235
	 * Add team member.