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

component/admin/models/package.php 1 location

@@ 430-435 (lines=6) @@
427
			$ftp = JClientHelper::getCredentials('ftp');
428
429
			// Try to make the file writeable.
430
			if (JFile::exists($path) && !$ftp['enabled'] && JPath::isOwner($path) && !JPath::setPermissions($path, '0644'))
431
			{
432
				$this->setError(JText::sprintf('COM_LOCALISE_ERROR_PACKAGE_WRITABLE', $path));
433
434
				return false;
435
			}
436
437
			// Make the XML look pretty
438
			$dom->formatOutput = true;

component/admin/models/packagefile.php 1 location

@@ 423-428 (lines=6) @@
420
			$ftp = JClientHelper::getCredentials('ftp');
421
422
			// Try to make the file writeable.
423
			if (JFile::exists($path) && !$ftp['enabled'] && JPath::isOwner($path) && !JPath::setPermissions($path, '0644'))
424
			{
425
				$this->setError(JText::sprintf('COM_LOCALISE_ERROR_PACKAGE_WRITABLE', $path));
426
427
				return false;
428
			}
429
430
			// Make the XML look pretty
431
			$dom->formatOutput = true;

component/admin/models/translation.php 1 location

@@ 1186-1191 (lines=6) @@
1183
		$ftp = JClientHelper::getCredentials('ftp');
1184
1185
		// Try to make the file writeable.
1186
		if ($exists && !$ftp['enabled'] && JPath::isOwner($path) && !JPath::setPermissions($path, '0644'))
1187
		{
1188
			$this->setError(JText::sprintf('COM_LOCALISE_ERROR_TRANSLATION_WRITABLE', $path));
1189
1190
			return false;
1191
		}
1192
1193
		if (array_key_exists('source', $data))
1194
		{

component/admin/models/language.php 1 location

@@ 405-410 (lines=6) @@
402
			$ftp = JClientHelper::getCredentials('ftp');
403
404
			// Try to make the file writeable.
405
			if ($exists && !$ftp['enabled'] && JPath::isOwner($path) && !JPath::setPermissions($path, '0644'))
406
			{
407
				$this->setError(JText::sprintf('COM_LOCALISE_ERROR_LANGUAGE_WRITABLE', $path));
408
409
				return false;
410
			}
411
412
			$return = JFile::write($path, $text);
413