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

modules/file/file.controller.php 2 locations

@@ 214-229 (lines=16) @@
211
		if($file_module_config->allow_outlink == 'N')
212
		{
213
			// Handles extension to allow outlink
214
			if($file_module_config->allow_outlink_format)
215
			{
216
				$allow_outlink_format_array = array();
217
				$allow_outlink_format_array = explode(',', $file_module_config->allow_outlink_format);
218
				if(!is_array($allow_outlink_format_array)) $allow_outlink_format_array[0] = $file_module_config->allow_outlink_format;
219
220
				foreach($allow_outlink_format_array as $val)
221
				{
222
					$val = trim($val);
223
					if(preg_match("/\.{$val}$/i", $filename))
224
					{
225
						$file_module_config->allow_outlink = 'Y';
226
						break;
227
					}
228
				}
229
			}
230
			// Sites that outlink is allowed
231
			if($file_module_config->allow_outlink != 'Y')
232
			{
@@ 236-251 (lines=16) @@
233
				$referer = parse_url($_SERVER["HTTP_REFERER"]);
234
				if($referer['host'] != $_SERVER['HTTP_HOST'])
235
				{
236
					if($file_module_config->allow_outlink_site)
237
					{
238
						$allow_outlink_site_array = array();
239
						$allow_outlink_site_array = explode("\n", $file_module_config->allow_outlink_site);
240
						if(!is_array($allow_outlink_site_array)) $allow_outlink_site_array[0] = $file_module_config->allow_outlink_site;
241
242
						foreach($allow_outlink_site_array as $val)
243
						{
244
							$site = parse_url(trim($val));
245
							if($site['host'] == $referer['host'])
246
							{
247
								$file_module_config->allow_outlink = 'Y';
248
								break;
249
							}
250
						}
251
					}
252
				}
253
				else $file_module_config->allow_outlink = 'Y';
254
			}