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

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