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

@@ 196-211 (lines=16) @@
193
		if($file_module_config->allow_outlink == 'N')
194
		{
195
			// Handles extension to allow outlink
196
			if($file_module_config->allow_outlink_format)
197
			{
198
				$allow_outlink_format_array = array();
199
				$allow_outlink_format_array = explode(',', $file_module_config->allow_outlink_format);
200
				if(!is_array($allow_outlink_format_array)) $allow_outlink_format_array[0] = $file_module_config->allow_outlink_format;
201
202
				foreach($allow_outlink_format_array as $val)
203
				{
204
					$val = trim($val);
205
					if(preg_match("/\.{$val}$/i", $filename))
206
					{
207
						$file_module_config->allow_outlink = 'Y';
208
						break;
209
					}
210
				}
211
			}
212
			// Sites that outlink is allowed
213
			if($file_module_config->allow_outlink != 'Y')
214
			{
@@ 218-233 (lines=16) @@
215
				$referer = parse_url($_SERVER["HTTP_REFERER"]);
216
				if($referer['host'] != $_SERVER['HTTP_HOST'])
217
				{
218
					if($file_module_config->allow_outlink_site)
219
					{
220
						$allow_outlink_site_array = array();
221
						$allow_outlink_site_array = explode("\n", $file_module_config->allow_outlink_site);
222
						if(!is_array($allow_outlink_site_array)) $allow_outlink_site_array[0] = $file_module_config->allow_outlink_site;
223
224
						foreach($allow_outlink_site_array as $val)
225
						{
226
							$site = parse_url(trim($val));
227
							if($site['host'] == $referer['host'])
228
							{
229
								$file_module_config->allow_outlink = 'Y';
230
								break;
231
							}
232
						}
233
					}
234
				}
235
				else $file_module_config->allow_outlink = 'Y';
236
			}