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

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