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

component/admin/models/package.php 1 location

@@ 73-96 (lines=24) @@
70
	 *
71
	 * @return  mixed  A JForm object on success, false on failure
72
	 */
73
	public function getForm($data = array(), $loadData = true)
74
	{
75
		// Get the form.
76
		$id   = $this->getState('package.id');
77
		$name = $this->getState('package.name');
78
		$form = $this->loadForm('com_localise.package', 'package', array('control' => 'jform', 'load_data' => $loadData));
79
80
		if (empty($form))
81
		{
82
			return false;
83
		}
84
85
		$form->setFieldAttribute('translations', 'package', $name, 'translations');
86
87
		// Check for an error.
88
		if (JError::isError($form))
89
		{
90
			$this->setError($form->getMessage());
91
92
			return false;
93
		}
94
95
		return $form;
96
	}
97
98
	/**
99
	 * Method to get the data that should be injected in the form.

component/admin/models/packagefile.php 1 location

@@ 73-96 (lines=24) @@
70
	 *
71
	 * @return  mixed  A JForm object on success, false on failure
72
	 */
73
	public function getForm($data = array(), $loadData = true)
74
	{
75
		// Get the form.
76
		$id   = $this->getState('packagefile.id');
77
		$name = $this->getState('packagefile.name');
78
		$form = $this->loadForm('com_localise.packagefile', 'packagefile', array('control' => 'jform', 'load_data' => $loadData));
79
80
		if (empty($form))
81
		{
82
			return false;
83
		}
84
85
		$form->setFieldAttribute('translations', 'packagefile', $name, 'translations');
86
87
		// Check for an error.
88
		if (JError::isError($form))
89
		{
90
			$this->setError($form->getMessage());
91
92
			return false;
93
		}
94
95
		return $form;
96
	}
97
98
	/**
99
	 * Method to get the data that should be injected in the form.