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

component/admin/models/translations.php 3 locations

@@ 473-507 (lines=35) @@
470
471
						$origin	= LocaliseHelper::getOrigin($name, $client);
472
473
						foreach ($tags as $tag)
474
						{
475
							if (JFile::exists($client_folder . '/' . $tag . '/' . $tag . '.xml'))
476
							{
477
								if (array_key_exists("$client|$reftag|$name", $this->translations))
478
								{
479
									$reftranslation = $this->translations["$client|$reftag|$name"];
480
481
									if (array_key_exists("$client|$tag|$name", $this->translations))
482
									{
483
										$this->translations["$client|$tag|$name"]->setProperties(array('refpath' => $reftranslation->path, 'state' => 'inlanguage'));
484
									}
485
									else
486
									{
487
										$path = constant('LOCALISEPATH_' . strtoupper($client)) . "/language/$tag/$tag.$name.ini";
488
										$translation = new JObject(
489
											array(
490
												'type' => '',
491
												'tag' => $tag,
492
												'client' => $client,
493
												'storage' => 'global',
494
												'filename' => $name,
495
												'name' => $name,
496
												'refpath' => $reftranslation->path,
497
												'path' => $path,
498
												'state' => 'unexisting',
499
												'writable' => LocaliseHelper::isWritable($path),
500
												'origin' => 'core'
501
											)
502
										);
503
										$this->translations["$client|$tag|$name"] = $translation;
504
									}
505
								}
506
							}
507
						}
508
509
						if (preg_match("/^$reftag\.(lib.*)\.ini$/", $file, $matches))
510
						{
@@ 514-548 (lines=35) @@
511
							$name   = $matches[1];
512
							$origin = LocaliseHelper::getOrigin($name, $client);
513
514
							foreach ($tags as $tag)
515
							{
516
								if (JFile::exists($client_folder . '/' . $tag . '/' . $tag . '.xml'))
517
								{
518
									if (array_key_exists("$client|$reftag|$name", $this->translations))
519
									{
520
										$reftranslation = $this->translations["$client|$reftag|$name"];
521
522
										if (array_key_exists("$client|$tag|$name", $this->translations))
523
										{
524
											$this->translations["$client|$tag|$name"]->setProperties(array('refpath' => $reftranslation->path, 'state' => 'inlanguage'));
525
										}
526
										else
527
										{
528
											$path = constant('LOCALISEPATH_' . strtoupper($client)) . "/language/$tag/$tag.$name.ini";
529
											$translation = new JObject(
530
												array(
531
													'type' => 'library',
532
													'tag' => $tag,
533
													'client' => $client,
534
													'storage' => 'global',
535
													'filename' => $name,
536
													'name' => $name,
537
													'refpath' => $reftranslation->path,
538
													'path' => $path,
539
													'state' => 'unexisting',
540
													'writable' => LocaliseHelper::isWritable($path),
541
													'origin' => '_thirdparty'
542
												)
543
											);
544
											$this->translations["$client|$tag|$name"] = $translation;
545
										}
546
									}
547
								}
548
							}
549
						}
550
						elseif (preg_match("/^$reftag\.(pkg.*)\.ini$/", $file, $matches))
551
						{
@@ 555-589 (lines=35) @@
552
							$name   = $matches[1];
553
							$origin = LocaliseHelper::getOrigin($name, $client);
554
555
							foreach ($tags as $tag)
556
							{
557
								if (JFile::exists($client_folder . '/' . $tag . '/' . $tag . '.xml'))
558
								{
559
									if (array_key_exists("$client|$reftag|$name", $this->translations))
560
									{
561
										$reftranslation = $this->translations["$client|$reftag|$name"];
562
563
										if (array_key_exists("$client|$tag|$name", $this->translations))
564
										{
565
											$this->translations["$client|$tag|$name"]->setProperties(array('refpath' => $reftranslation->path, 'state' => 'inlanguage'));
566
										}
567
										else
568
										{
569
											$path = constant('LOCALISEPATH_' . strtoupper($client)) . "/language/$tag/$tag.$name.ini";
570
											$translation = new JObject(
571
												array(
572
													'type' => 'package',
573
													'tag' => $tag,
574
													'client' => $client,
575
													'storage' => 'global',
576
													'filename' => $name,
577
													'name' => $name,
578
													'refpath' => $reftranslation->path,
579
													'path' => $path,
580
													'state' => 'unexisting',
581
													'writable' => LocaliseHelper::isWritable($path),
582
													'origin' => '_thirdparty'
583
												)
584
											);
585
											$this->translations["$client|$tag|$name"] = $translation;
586
										}
587
									}
588
								}
589
							}
590
						}
591
						elseif (preg_match("/^$reftag\.(finder_cli)\.ini$/", $file, $matches)
592
								|| preg_match("/^$reftag\.(files_joomla.sys)\.ini$/", $file, $matches) )