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

component/admin/tables/localise.php 2 locations

@@ 137-152 (lines=16) @@
134
			{
135
				$component = JTable::getInstance('asset');
136
137
				if (!$component->loadByName('com_localise'))
138
				{
139
					$root = JTable::getInstance('asset');
140
					$root->rebuild();
141
					$root->loadByName('root.1');
142
					$component->name  = 'com_localise';
143
					$component->title = 'com_localise';
144
					$component->setLocation($root->id, 'last-child');
145
146
					if (!$component->check() || !$component->store())
147
					{
148
						$this->setError($component->getError());
149
150
						return false;
151
					}
152
				}
153
154
				$asset->name  = "com_localise.$id";
155
				$asset->title = $name;
@@ 166-183 (lines=18) @@
163
				}
164
			}
165
		}
166
		else
167
		{
168
			if (!$asset->loadByName('com_localise'))
169
			{
170
				$root = JTable::getInstance('asset');
171
				$root->loadByName('root.1');
172
				$asset->name  = 'com_localise';
173
				$asset->title = 'com_localise';
174
				$asset->setLocation($root->id, 'last-child');
175
176
				if (!$asset->check() || !$asset->store())
177
				{
178
					$this->setError($asset->getError());
179
180
					return false;
181
				}
182
			}
183
		}
184
185
		return $asset->id;
186
	}