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 = 23-23 lines in 6 locations

component/admin/helpers/localise.php 6 locations

@@ 220-242 (lines=23) @@
217
		if (preg_match("/$filter_client/", 'administrator'))
218
		{
219
			// Scan administrator components folders
220
			if (preg_match("/$filter_type/", 'component'))
221
			{
222
				$scans[] = array(
223
					'prefix' => '',
224
					'suffix' => '',
225
					'type'   => 'component',
226
					'client' => 'administrator',
227
					'path'   => LOCALISEPATH_ADMINISTRATOR . '/components/',
228
					'folder' => ''
229
				);
230
231
				foreach ($suffixes as $suffix)
232
				{
233
					$scans[] = array(
234
						'prefix' => '',
235
						'suffix' => $suffix,
236
						'type'   => 'component',
237
						'client' => 'administrator',
238
						'path'   => LOCALISEPATH_ADMINISTRATOR . '/components/',
239
						'folder' => ''
240
					);
241
				}
242
			}
243
244
			// Scan administrator modules folders
245
			if (preg_match("/$filter_type/", 'module'))
@@ 245-267 (lines=23) @@
242
			}
243
244
			// Scan administrator modules folders
245
			if (preg_match("/$filter_type/", 'module'))
246
			{
247
				$scans[] = array(
248
					'prefix' => '',
249
					'suffix' => '',
250
					'type'   => 'module',
251
					'client' => 'administrator',
252
					'path'   => LOCALISEPATH_ADMINISTRATOR . '/modules/',
253
					'folder' => ''
254
				);
255
256
				foreach ($suffixes as $suffix)
257
				{
258
					$scans[] = array(
259
						'prefix' => '',
260
						'suffix' => $suffix,
261
						'type'   => 'module',
262
						'client' => 'administrator',
263
						'path'   => LOCALISEPATH_ADMINISTRATOR . '/modules/',
264
						'folder' => ''
265
					);
266
				}
267
			}
268
269
			// Scan administrator templates folders
270
			if (preg_match("/$filter_type/", 'template'))
@@ 270-292 (lines=23) @@
267
			}
268
269
			// Scan administrator templates folders
270
			if (preg_match("/$filter_type/", 'template'))
271
			{
272
				$scans[] = array(
273
					'prefix' => 'tpl_',
274
					'suffix' => '',
275
					'type'   => 'template',
276
					'client' => 'administrator',
277
					'path'   => LOCALISEPATH_ADMINISTRATOR . '/templates/',
278
					'folder' => ''
279
				);
280
281
				foreach ($suffixes as $suffix)
282
				{
283
					$scans[] = array(
284
						'prefix' => 'tpl_',
285
						'suffix' => $suffix,
286
						'type'   => 'template',
287
						'client' => 'administrator',
288
						'path'   => LOCALISEPATH_ADMINISTRATOR . '/templates/',
289
						'folder' => ''
290
					);
291
				}
292
			}
293
294
			// Scan plugins folders
295
			if (preg_match("/$filter_type/", 'plugin'))
@@ 330-352 (lines=23) @@
327
		if (preg_match("/$filter_client/", 'site'))
328
		{
329
			// Scan site components folders
330
			if (preg_match("/$filter_type/", 'component'))
331
			{
332
				$scans[] = array(
333
					'prefix' => '',
334
					'suffix' => '',
335
					'type'   => 'component',
336
					'client' => 'site',
337
					'path'   => LOCALISEPATH_SITE . '/components/',
338
					'folder' => ''
339
				);
340
341
				foreach ($suffixes as $suffix)
342
				{
343
					$scans[] = array(
344
						'prefix' => '',
345
						'suffix' => $suffix,
346
						'type'   => 'component',
347
						'client' => 'site',
348
						'path'   => LOCALISEPATH_SITE . '/components/',
349
						'folder' => ''
350
					);
351
				}
352
			}
353
354
			// Scan site modules folders
355
			if (preg_match("/$filter_type/", 'module'))
@@ 355-377 (lines=23) @@
352
			}
353
354
			// Scan site modules folders
355
			if (preg_match("/$filter_type/", 'module'))
356
			{
357
				$scans[] = array(
358
					'prefix' => '',
359
					'suffix' => '',
360
					'type'   => 'module',
361
					'client' => 'site',
362
					'path'   => LOCALISEPATH_SITE . '/modules/',
363
					'folder' => ''
364
				);
365
366
				foreach ($suffixes as $suffix)
367
				{
368
					$scans[] = array(
369
						'prefix' => '',
370
						'suffix' => $suffix,
371
						'type'   => 'module',
372
						'client' => 'site',
373
						'path'   => LOCALISEPATH_SITE . '/modules/',
374
						'folder' => ''
375
					);
376
				}
377
			}
378
379
			// Scan site templates folders
380
			if (preg_match("/$filter_type/", 'template'))
@@ 380-402 (lines=23) @@
377
			}
378
379
			// Scan site templates folders
380
			if (preg_match("/$filter_type/", 'template'))
381
			{
382
				$scans[] = array(
383
					'prefix' => 'tpl_',
384
					'suffix' => '',
385
					'type'   => 'template',
386
					'client' => 'site',
387
					'path'   => LOCALISEPATH_SITE . '/templates/',
388
					'folder' => ''
389
				);
390
391
				foreach ($suffixes as $suffix)
392
				{
393
					$scans[] = array(
394
						'prefix' => 'tpl_',
395
						'suffix' => $suffix,
396
						'type'   => 'template',
397
						'client' => 'site',
398
						'path'   => LOCALISEPATH_SITE . '/templates/',
399
						'folder' => ''
400
					);
401
				}
402
			}
403
		}
404
405
		return $scans;