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

component/admin/models/package.php 1 location

@@ 444-455 (lines=12) @@
441
			$return = JFile::write($path, $formattedXML);
442
443
			// Try to make the file unwriteable.
444
			if (!$ftp['enabled'] && JPath::isOwner($path) && !JPath::setPermissions($path, '0444'))
445
			{
446
				$this->setError(JText::sprintf('COM_LOCALISE_ERROR_PACKAGE_UNWRITABLE', $path));
447
448
				return false;
449
			}
450
			elseif (!$return)
451
			{
452
				$this->setError(JText::sprintf('COM_LOCALISE_ERROR_PACKAGE_FILESAVE', $path));
453
454
				return false;
455
			}
456
		}
457
458
		// Save the title and the description in the language file

component/admin/models/packagefile.php 1 location

@@ 437-448 (lines=12) @@
434
			$return = JFile::write($path, $formattedXML);
435
436
			// Try to make the file unwriteable.
437
			if (!$ftp['enabled'] && JPath::isOwner($path) && !JPath::setPermissions($path, '0444'))
438
			{
439
				$this->setError(JText::sprintf('COM_LOCALISE_ERROR_PACKAGE_UNWRITABLE', $path));
440
441
				return false;
442
			}
443
			elseif (!$return)
444
			{
445
				$this->setError(JText::sprintf('COM_LOCALISE_ERROR_PACKAGE_FILESAVE', $path));
446
447
				return false;
448
			}
449
		}
450
451
		/** @TODO: Check ftp code

component/admin/models/language.php 1 location

@@ 421-435 (lines=15) @@
418
			$fileSavePermission = $params->get('filesavepermission', '0444');
419
420
			// Try to make the template file unwriteable.
421
			if (!$ftp['enabled'] && JPath::isOwner($path) && !JPath::setPermissions($path, $fileSavePermission))
422
			{
423
				$this->setError(JText::sprintf('COM_LOCALISE_ERROR_LANGUAGE_UNWRITABLE', $path));
424
425
				return false;
426
			}
427
			else
428
			{
429
				if (!$return)
430
				{
431
					$this->setError(JText::sprintf('COM_LOCALISE_ERROR_LANGUAGE_FILESAVE', $path));
432
433
					return false;
434
				}
435
			}
436
437
			$id = LocaliseHelper::getFileId($path);
438