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/language.php 1 location

@@ 395-409 (lines=15) @@
392
			$fileSavePermission = $params->get('filesavepermission', '0444');
393
394
			// Try to make the template file unwriteable.
395
			if (!$ftp['enabled'] && JPath::isOwner($path) && !JPath::setPermissions($path, $fileSavePermission))
396
			{
397
				$this->setError(JText::sprintf('COM_LOCALISE_ERROR_LANGUAGE_UNWRITABLE', $path));
398
399
				return false;
400
			}
401
			else
402
			{
403
				if (!$return)
404
				{
405
					$this->setError(JText::sprintf('COM_LOCALISE_ERROR_LANGUAGE_FILESAVE', $path));
406
407
					return false;
408
				}
409
			}
410
411
			$id = LocaliseHelper::getFileId($path);
412

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