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

component/admin/models/packagefile.php 1 location

@@ 549-567 (lines=19) @@
546
		}
547
548
		// Delete the older file and redirect
549
		if ($path !== $oldpath && file_exists($oldpath))
550
		{
551
			if (!JFile::delete($oldpath))
552
			{
553
				$app->enqueueMessage(JText::_('COM_LOCALISE_ERROR_OLDFILE_REMOVE'), 'notice');
554
			}
555
556
			$task = JFactory::getApplication()->input->get('task');
557
558
			if ($task == 'save')
559
			{
560
				$app->redirect(JRoute::_('index.php?option=com_localise&view=packages', false));
561
			}
562
			else
563
			{
564
				// Redirect to the new $id as name has changed
565
				$app->redirect(JRoute::_('index.php?option=com_localise&view=packagefile&layout=edit&id=' . $this->getState('packagefile.id'), false));
566
			}
567
		}
568
569
		$this->cleanCache();
570

component/admin/models/package.php 1 location

@@ 565-583 (lines=19) @@
562
		}
563
564
		// Delete the older file and redirect
565
		if ($path !== $oldpath && file_exists($oldpath))
566
		{
567
			if (!JFile::delete($oldpath))
568
			{
569
				$app->enqueueMessage(JText::_('COM_LOCALISE_ERROR_OLDFILE_REMOVE'), 'notice');
570
			}
571
572
			$task = JFactory::getApplication()->input->get('task');
573
574
			if ($task == 'save')
575
			{
576
				$app->redirect(JRoute::_('index.php?option=com_localise&view=packages', false));
577
			}
578
			else
579
			{
580
				// Redirect to the new $id as name has changed
581
				$app->redirect(JRoute::_('index.php?option=com_localise&view=package&layout=edit&id=' . $this->getState('package.id'), false));
582
			}
583
		}
584
585
		$this->cleanCache();
586