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

component/admin/models/package.php 1 location

@@ 125-144 (lines=20) @@
122
	 *
123
	 * @return  mixed  A JForm object on success, false on failure or not ftp
124
	 */
125
	public function getFormFtp()
126
	{
127
		// Get the form.
128
		$form = $this->loadForm('com_localise.ftp', 'ftp');
129
130
		if (empty($form))
131
		{
132
			return false;
133
		}
134
135
		// Check for an error.
136
		if (JError::isError($form))
137
		{
138
			$this->setError($form->getMessage());
139
140
			return false;
141
		}
142
143
		return $form;
144
	}
145
146
	/**
147
	 * Method to get the package.

component/admin/models/packagefile.php 1 location

@@ 125-144 (lines=20) @@
122
	 *
123
	 * @return  mixed  A JForm object on success, false on failure or not ftp
124
	 */
125
	public function getFormFtp()
126
	{
127
		// Get the form.
128
		$form = $this->loadForm('com_localise.ftp', 'ftp');
129
130
		if (empty($form))
131
		{
132
			return false;
133
		}
134
135
		// Check for an error.
136
		if (JError::isError($form))
137
		{
138
			$this->setError($form->getMessage());
139
140
			return false;
141
		}
142
143
		return $form;
144
	}
145
146
	/**
147
	 * Method to get the package.

component/admin/models/language.php 1 location

@@ 134-153 (lines=20) @@
131
	 *
132
	 * @return  mixed  A JForm object on success, false on failure or not ftp
133
	 */
134
	public function getFormFtp()
135
	{
136
		// Get the form.
137
		$form = $this->loadForm('com_localise.ftp', 'ftp');
138
139
		if (empty($form))
140
		{
141
			return false;
142
		}
143
144
		// Check for an error.
145
		if (JError::isError($form))
146
		{
147
			$this->setError($form->getMessage());
148
149
			return false;
150
		}
151
152
		return $form;
153
	}
154
155
	/**
156
	 * Method to get the language.

component/admin/models/translation.php 1 location

@@ 763-782 (lines=20) @@
760
	 *
761
	 * @return  mixed  A JForm object on success, false on failure or not ftp
762
	 */
763
	public function getFormFtp()
764
	{
765
		// Get the form.
766
		$form = $this->loadForm('com_localise.ftp', 'ftp');
767
768
		if (empty($form))
769
		{
770
			return false;
771
		}
772
773
		// Check for an error.
774
		if (JError::isError($form))
775
		{
776
			$this->setError($form->getMessage());
777
778
			return false;
779
		}
780
781
		return $form;
782
	}
783
784
	/**
785
	 * Method to allow derived classes to preprocess the form.