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 = 10-10 lines in 2 locations

component/admin/models/packagefile.php 1 location

@@ 602-611 (lines=10) @@
599
		// Delete old files
600
		$delete = JFolder::files(JPATH_ROOT . '/tmp/', 'com_localise_', false, true);
601
602
		if (!empty($delete))
603
		{
604
			if (!JFile::delete($delete))
605
			{
606
				// JFile::delete throws an error
607
				$this->setError(JText::_('COM_LOCALISE_ERROR_EXPORT_ZIPDELETE'));
608
609
				return false;
610
			}
611
		}
612
613
		foreach ($data['translations'] as $translation)
614
		{

component/admin/models/package.php 1 location

@@ 627-636 (lines=10) @@
624
		// Delete old files
625
		$delete = JFolder::files(JPATH_ROOT . '/tmp/', 'com_localise_', false, true);
626
627
		if (!empty($delete))
628
		{
629
			if (!JFile::delete($delete))
630
			{
631
				// JFile::delete throws an error
632
				$this->setError(JText::_('COM_LOCALISE_ERROR_EXPORT_ZIPDELETE'));
633
634
				return false;
635
			}
636
		}
637
638
		foreach ($data['translations'] as $translation)
639
		{