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

component/admin/models/fields/develop.php 1 location

@@ 22-62 (lines=41) @@
19
 *
20
 * @since       1.0
21
 */
22
class JFormFieldDevelop extends JFormFieldList
23
{
24
	/**
25
	 * The field type.
26
	 *
27
	 * @var    string
28
	 */
29
	protected $type = 'Develop';
30
31
	/**
32
	 * Method to get the field input.
33
	 *
34
	 * @return  string    The field input.
35
	 */
36
	protected function getOptions()
37
	{
38
		$attributes = '';
39
40
		if ($v = (string) $this->element['onchange'])
41
		{
42
			$attributes .= ' onchange="' . $v . '"';
43
		}
44
45
		$attributes .= ' class="' . (string) $this->element['class'] . ' iconlist-16-' . $this->value . '"';
46
		$options = array();
47
48
		foreach ($this->element->children() as $option)
49
		{
50
			$options[] = JHtml::_('select.option', $option->attributes('value'), JText::_(trim($option)), array('option.attr' => 'attributes', 'attr' => ''));
51
		}
52
53
		$options[] = JHtml::_('select.option', 'complete', JText::sprintf('COM_LOCALISE_OPTION_TRANSLATIONS_DEVELOP_COMPLETE'),
54
					array('option.attr' => 'attributes', 'attr' => 'class="iconlist-16-equal"')
55
					);
56
		$options[] = JHtml::_('select.option', 'incomplete', JText::sprintf('COM_LOCALISE_OPTION_TRANSLATIONS_DEVELOP_INCOMPLETE'),
57
					array('option.attr' => 'attributes', 'attr' => 'class="iconlist-16-changed"')
58
					);
59
60
		return $options;
61
	}
62
}
63

component/admin/models/fields/storage.php 1 location

@@ 22-62 (lines=41) @@
19
 *
20
 * @since       1.0
21
 */
22
class JFormFieldStorage extends JFormFieldList
23
{
24
	/**
25
	 * The field type.
26
	 *
27
	 * @var    string
28
	 */
29
	protected $type = 'Storage';
30
31
	/**
32
	 * Method to get the field input.
33
	 *
34
	 * @return  string    The field input.
35
	 */
36
	protected function getOptions()
37
	{
38
		$attributes = '';
39
40
		if ($v = (string) $this->element['onchange'])
41
		{
42
			$attributes .= ' onchange="' . $v . '"';
43
		}
44
45
		$attributes .= ' class="' . (string) $this->element['class'] . ' iconlist-16-' . $this->value . '"';
46
		$options = array();
47
48
		foreach ($this->element->children() as $option)
49
		{
50
			$options[] = JHtml::_('select.option', $option->attributes('value'), JText::_(trim($option)), array('option.attr' => 'attributes', 'attr' => ''));
51
		}
52
53
		$options[] = JHtml::_('select.option', 'global', JText::sprintf('COM_LOCALISE_OPTION_TRANSLATIONS_STORAGE_GLOBAL'),
54
					array('option.attr' => 'attributes', 'attr' => 'class="iconlist-16-global"')
55
					);
56
		$options[] = JHtml::_('select.option', 'local', JText::sprintf('COM_LOCALISE_OPTION_TRANSLATIONS_STORAGE_LOCAL'),
57
					array('option.attr' => 'attributes', 'attr' => 'class="iconlist-16-local"')
58
					);
59
60
		return $options;
61
	}
62
}
63