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 = 15-15 lines in 4 locations

component/admin/models/packagefile.php 1 location

@@ 810-824 (lines=15) @@
807
		$ziproot = JPATH_ROOT . '/tmp/' . uniqid('com_localise_main_') . '.zip';
808
809
		// Run the packager
810
		if (!$packager = JArchive::getAdapter('zip'))
811
		{
812
			$this->setError(JText::_('COM_LOCALISE_ERROR_EXPORT_ADAPTER'));
813
814
			return false;
815
		}
816
		else
817
		{
818
			if (!$packager->create($ziproot, $main_package_files))
819
			{
820
				$this->setError(JText::_('COM_LOCALISE_ERROR_EXPORT_ZIPCREATE'));
821
822
				return false;
823
			}
824
		}
825
826
		ob_clean();
827
		$zipdata = file_get_contents($ziproot);

component/admin/models/package.php 3 locations

@@ 869-883 (lines=15) @@
866
867
			$site_zip_path = JPATH_ROOT . '/tmp/' . uniqid('com_localise_') . '.zip';
868
869
			if (!$packager = JArchive::getAdapter('zip'))
870
			{
871
				$this->setError(JText::_('COM_LOCALISE_ERROR_EXPORT_ADAPTER'));
872
873
				return false;
874
			}
875
			else
876
			{
877
				if (!$packager->create($site_zip_path, $site_package_files))
878
				{
879
					$this->setError(JText::_('COM_LOCALISE_ERROR_EXPORT_ZIPCREATE'));
880
881
					return false;
882
				}
883
			}
884
885
			$main_package_files[] = array('name' => 'site_' . $data['language'] . '.zip','data' => file_get_contents($site_zip_path));
886
		}
@@ 1019-1033 (lines=15) @@
1016
1017
			$admin_zip_path = JPATH_ROOT . '/tmp/' . uniqid('com_localise_') . '.zip';
1018
1019
			if (!$packager = JArchive::getAdapter('zip'))
1020
			{
1021
				$this->setError(JText::_('COM_LOCALISE_ERROR_EXPORT_ADAPTER'));
1022
1023
				return false;
1024
			}
1025
			else
1026
			{
1027
				if (!$packager->create($admin_zip_path, $admin_package_files))
1028
				{
1029
					$this->setError(JText::_('COM_LOCALISE_ERROR_EXPORT_ZIPCREATE'));
1030
1031
					return false;
1032
				}
1033
			}
1034
1035
			$main_package_files[] = array('name' => 'admin_' . $data['language'] . '.zip','data' => file_get_contents($admin_zip_path));
1036
		}
@@ 1054-1068 (lines=15) @@
1051
		$ziproot = JPATH_ROOT . '/tmp/' . uniqid('com_localise_main_') . '.zip';
1052
1053
		// Run the packager
1054
		if (!$packager = JArchive::getAdapter('zip'))
1055
		{
1056
			$this->setError(JText::_('COM_LOCALISE_ERROR_EXPORT_ADAPTER'));
1057
1058
			return false;
1059
		}
1060
		else
1061
		{
1062
			if (!$packager->create($ziproot, $main_package_files))
1063
			{
1064
				$this->setError(JText::_('COM_LOCALISE_ERROR_EXPORT_ZIPCREATE'));
1065
1066
				return false;
1067
			}
1068
		}
1069
1070
		ob_clean();
1071
		$zipdata = file_get_contents($ziproot);