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 = 8-15 lines in 25 locations

component/admin/vendor/joomla/github/src/Package/Activity/Watching.php 1 location

@@ 122-131 (lines=10) @@
119
	 *
120
	 * @since   1.0
121
	 */
122
	public function deleteSubscription($owner, $repo)
123
	{
124
		// Build the request path.
125
		$path = '/repos/' . $owner . '/' . $repo . '/subscription';
126
127
		return $this->processResponse(
128
			$this->client->delete($this->fetchUrl($path)),
129
			204
130
		);
131
	}
132
133
	/**
134
	 * Check if you are watching a repository (LEGACY).

component/admin/vendor/joomla/github/src/Package/Data/Refs.php 1 location

@@ 149-158 (lines=10) @@
146
	 *
147
	 * @since   1.0
148
	 */
149
	public function delete($owner, $repo, $ref)
150
	{
151
		// Build the request path.
152
		$path = '/repos/' . $owner . '/' . $repo . '/git/refs/' . $ref;
153
154
		return $this->processResponse(
155
			$this->client->delete($this->fetchUrl($path)),
156
			204
157
		);
158
	}
159
}
160

component/admin/vendor/joomla/github/src/Package/Issues/Comments.php 1 location

@@ 200-212 (lines=13) @@
197
	 * @since   1.0
198
	 * @throws  \DomainException
199
	 */
200
	public function delete($user, $repo, $commentId)
201
	{
202
		// Build the request path.
203
		$path = '/repos/' . $user . '/' . $repo . '/issues/comments/' . (int) $commentId;
204
205
		// Send the request.
206
		$this->processResponse(
207
			$this->client->delete($this->fetchUrl($path)),
208
			204
209
		);
210
211
		return true;
212
	}
213
}
214

component/admin/vendor/joomla/github/src/Package/Issues/Labels.php 4 locations

@@ 106-116 (lines=11) @@
103
	 *
104
	 * @since   1.0
105
	 */
106
	public function delete($owner, $repo, $name)
107
	{
108
		// Build the request path.
109
		$path = '/repos/' . $owner . '/' . $repo . '/labels/' . rawurlencode($name);
110
111
		// Send the request.
112
		return $this->processResponse(
113
			$this->client->delete($this->fetchUrl($path)),
114
			204
115
		);
116
	}
117
118
	/**
119
	 * Update a label.
@@ 184-193 (lines=10) @@
181
	 *
182
	 * @since   1.0
183
	 */
184
	public function add($owner, $repo, $number, array $labels)
185
	{
186
		// Build the request path.
187
		$path = '/repos/' . $owner . '/' . $repo . '/issues/' . $number . '/labels';
188
189
		// Send the request.
190
		return $this->processResponse(
191
			$this->client->post($this->fetchUrl($path), json_encode($labels))
192
		);
193
	}
194
195
	/**
196
	 * Remove a label from an issue.
@@ 232-241 (lines=10) @@
229
	 *
230
	 * @since   1.0
231
	 */
232
	public function replace($owner, $repo, $number, array $labels)
233
	{
234
		// Build the request path.
235
		$path = '/repos/' . $owner . '/' . $repo . '/issues/' . $number . '/labels';
236
237
		// Send the request.
238
		return $this->processResponse(
239
			$this->client->put($this->fetchUrl($path), json_encode($labels))
240
		);
241
	}
242
243
	/**
244
	 * Remove all labels from an issue.
@@ 254-264 (lines=11) @@
251
	 *
252
	 * @since   1.0
253
	 */
254
	public function removeAllFromIssue($owner, $repo, $number)
255
	{
256
		// Build the request path.
257
		$path = '/repos/' . $owner . '/' . $repo . '/issues/' . $number . '/labels';
258
259
		// Send the request.
260
		return $this->processResponse(
261
			$this->client->delete($this->fetchUrl($path)),
262
			204
263
		);
264
	}
265
266
	/**
267
	 * Get labels for every issue in a milestone.

component/admin/vendor/joomla/github/src/Package/Issues/Milestones.php 1 location

@@ 182-189 (lines=8) @@
179
	 * @since   1.0
180
	 * @throws  \DomainException
181
	 */
182
	public function delete($user, $repo, $milestoneId)
183
	{
184
		// Build the request path.
185
		$path = '/repos/' . $user . '/' . $repo . '/milestones/' . (int) $milestoneId;
186
187
		// Send the request.
188
		$this->processResponse($this->client->delete($this->fetchUrl($path)), 204);
189
	}
190
}
191

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

@@ 452-461 (lines=10) @@
449
	 *
450
	 * @since   1.0
451
	 */
452
	public function addRepo($id, $org, $repo)
453
	{
454
		// Build the request path.
455
		$path = '/teams/' . $id . '/repos/' . $org . '/' . $repo;
456
457
		return $this->processResponse(
458
			$this->client->put($this->fetchUrl($path), ''),
459
			204
460
		);
461
	}
462
463
	/**
464
	 * Remove team repository.
@@ 478-487 (lines=10) @@
475
	 *
476
	 * @since   1.0
477
	 */
478
	public function removeRepo($id, $owner, $repo)
479
	{
480
		// Build the request path.
481
		$path = '/teams/' . (int) $id . '/repos/' . $owner . '/' . $repo;
482
483
		return $this->processResponse(
484
			$this->client->delete($this->fetchUrl($path)),
485
			204
486
		);
487
	}
488
489
	/**
490
	 * List user teams.

component/admin/vendor/joomla/github/src/Package/Pulls/Comments.php 1 location

@@ 103-113 (lines=11) @@
100
	 *
101
	 * @return  void
102
	 */
103
	public function delete($user, $repo, $commentId)
104
	{
105
		// Build the request path.
106
		$path = '/repos/' . $user . '/' . $repo . '/pulls/comments/' . (int) $commentId;
107
108
		// Send the request.
109
		$this->processResponse(
110
			$this->client->delete($this->fetchUrl($path)),
111
			204
112
		);
113
	}
114
115
	/**
116
	 * Edit a comment.

component/admin/vendor/joomla/github/src/Package/Repositories/Collaborators.php 2 locations

@@ 92-101 (lines=10) @@
89
	 *
90
	 * @return object
91
	 */
92
	public function add($owner, $repo, $user)
93
	{
94
		// Build the request path.
95
		$path = '/repos/' . $owner . '/' . $repo . '/collaborators/' . $user;
96
97
		return $this->processResponse(
98
			$this->client->put($this->fetchUrl($path), ''),
99
			204
100
		);
101
	}
102
103
	/**
104
	 * Remove user as a collaborator.
@@ 114-123 (lines=10) @@
111
	 *
112
	 * @return object
113
	 */
114
	public function remove($owner, $repo, $user)
115
	{
116
		// Build the request path.
117
		$path = '/repos/' . $owner . '/' . $repo . '/collaborators/' . $user;
118
119
		return $this->processResponse(
120
			$this->client->delete($this->fetchUrl($path)),
121
			204
122
		);
123
	}
124
}
125

component/admin/vendor/joomla/github/src/Package/Repositories/Comments.php 2 locations

@@ 34-43 (lines=10) @@
31
	 *
32
	 * @since   1.0
33
	 */
34
	public function getListRepository($user, $repo, $page = 0, $limit = 0)
35
	{
36
		// Build the request path.
37
		$path = '/repos/' . $user . '/' . $repo . '/comments';
38
39
		// Send the request.
40
		return $this->processResponse(
41
			$this->client->get($this->fetchUrl($path, $page, $limit))
42
		);
43
	}
44
45
	/**
46
	 * List comments for a single commit.
@@ 131-141 (lines=11) @@
128
	 *
129
	 * @since   1.0
130
	 */
131
	public function delete($user, $repo, $id)
132
	{
133
		// Build the request path.
134
		$path = '/repos/' . $user . '/' . $repo . '/comments/' . $id;
135
136
		// Send the request.
137
		return $this->processResponse(
138
			$this->client->delete($this->fetchUrl($path)),
139
			204
140
		);
141
	}
142
143
	/**
144
	 * Create a commit comment.

component/admin/vendor/joomla/github/src/Package/Repositories/Contents.php 1 location

@@ 38-52 (lines=15) @@
35
	 *
36
	 * @return object
37
	 */
38
	public function getReadme($owner, $repo, $ref = '')
39
	{
40
		// Build the request path.
41
		$path = '/repos/' . $owner . '/' . $repo . '/readme';
42
43
		if ($ref)
44
		{
45
			$path .= '?ref=' . $ref;
46
		}
47
48
		// Send the request.
49
		return $this->processResponse(
50
			$this->client->get($this->fetchUrl($path))
51
		);
52
	}
53
54
	/**
55
	 * Get contents.

component/admin/vendor/joomla/github/src/Package/Repositories/Downloads.php 1 location

@@ 158-168 (lines=11) @@
155
	 * @since   1.0
156
	 * @deprecated  The Releases API should be used instead
157
	 */
158
	public function delete($owner, $repo, $id)
159
	{
160
		// Build the request path.
161
		$path = '/repos/' . $owner . '/' . $repo . '/downloads/' . (int) $id;
162
163
		// Send the request.
164
		return $this->processResponse(
165
			$this->client->delete($this->fetchUrl($path)),
166
			204
167
		);
168
	}
169
}
170

component/admin/vendor/joomla/github/src/Package/Repositories/Forks.php 1 location

@@ 67-74 (lines=8) @@
64
	 * @since   1.0
65
	 * @throws  \DomainException
66
	 */
67
	public function getList($owner, $repo, $page = 0, $limit = 0)
68
	{
69
		// Build the request path.
70
		$path = '/repos/' . $owner . '/' . $repo . '/forks';
71
72
		// Send the request.
73
		return $this->processResponse($this->client->get($this->fetchUrl($path, $page, $limit)), 200);
74
	}
75
}
76

component/admin/vendor/joomla/github/src/Package/Repositories/Hooks.php 1 location

@@ 74-83 (lines=10) @@
71
	 * @since   1.0
72
	 * @throws  \DomainException
73
	 */
74
	public function delete($user, $repo, $id)
75
	{
76
		// Build the request path.
77
		$path = '/repos/' . $user . '/' . $repo . '/hooks/' . $id;
78
79
		return $this->processResponse(
80
			$this->client->delete($this->fetchUrl($path)),
81
			204
82
		);
83
	}
84
85
	/**
86
	 * Edit a hook.

component/admin/vendor/joomla/github/src/Package/Repositories/Keys.php 1 location

@@ 130-141 (lines=12) @@
127
	 *
128
	 * @return boolean
129
	 */
130
	public function delete($owner, $repo, $id)
131
	{
132
		// Build the request path.
133
		$path = '/repos/' . $owner . '/' . $repo . '/keys/' . (int) $id;
134
135
		$this->processResponse(
136
			$this->client->delete($this->fetchUrl($path)),
137
			204
138
		);
139
140
		return true;
141
	}
142
}
143

component/admin/vendor/joomla/github/src/Package/Repositories/Releases.php 2 locations

@@ 71-80 (lines=10) @@
68
	 *
69
	 * @since   1.4.0
70
	 */
71
	public function delete($owner, $repo, $releaseId)
72
	{
73
		// Build the request path.
74
		$path = '/repos/' . $owner . '/' . $repo . '/releases/' . (int) $releaseId;
75
76
		return $this->processResponse(
77
			$this->client->delete($this->fetchUrl($path)),
78
			204
79
		);
80
	}
81
82
	/**
83
	 * Edit a release.
@@ 329-338 (lines=10) @@
326
	 *
327
	 * @since   1.4.0
328
	 */
329
	public function deleteAsset($user, $repo, $assetId)
330
	{
331
		// Build the request path.
332
		$path = '/repos/' . $user . '/' . $repo . '/releases/assets/' . (int) $assetId;
333
334
		// Send the request.
335
		$this->processResponse($this->client->delete($this->fetchUrl($path)), 204);
336
337
		return true;
338
	}
339
}
340

component/admin/vendor/joomla/github/src/Package/Issues/Events.php 1 location

@@ 37-46 (lines=10) @@
34
	 *
35
	 * @return object
36
	 */
37
	public function getList($owner, $repo, $issueNumber, $page = 0, $limit = 0)
38
	{
39
		// Build the request path.
40
		$path = '/repos/' . $owner . '/' . $repo . '/issues/' . (int) $issueNumber . '/events';
41
42
		// Send the request.
43
		return $this->processResponse(
44
			$this->client->get($this->fetchUrl($path, $page, $limit))
45
		);
46
	}
47
48
	/**
49
	 * List events for a repository.

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

@@ 314-325 (lines=12) @@
311
	 *
312
	 * @since   1.0
313
	 */
314
	public function getListContributors($owner, $repo, $anon = false)
315
	{
316
		// Build the request path.
317
		$path = '/repos/' . $owner . '/' . $repo . '/contributors';
318
319
		$path .= ($anon) ? '?anon=true' : '';
320
321
		// Send the request.
322
		return $this->processResponse(
323
			$this->client->get($this->fetchUrl($path))
324
		);
325
	}
326
327
	/**
328
	 * List languages.

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

@@ 96-107 (lines=12) @@
93
	 * @since   1.0
94
	 * @deprecated  The legacy API is deprecated
95
	 */
96
	public function users($keyword, $startPage = 0)
97
	{
98
		// Build the request path.
99
		$path = '/legacy/user/search/' . $keyword . '?';
100
101
		$path .= ($startPage) ? '&start_page=' . $startPage : '';
102
103
		// Send the request.
104
		return $this->processResponse(
105
			$this->client->get($this->fetchUrl($path))
106
		);
107
	}
108
109
	/**
110
	 * Email search.