Code Duplication    Length = 5-5 lines in 2 locations

topicsolved.php 2 locations

@@ 286-290 (lines=5) @@
283
			$title = ' title="' . htmlspecialchars($alt, ENT_QUOTES, 'UTF-8') . '"';
284
		}
285
286
		if (!empty($url))
287
		{
288
			$markup = sprintf('<a href="%s"%s>%s</a>',
289
				htmlspecialchars($url, ENT_QUOTES, 'UTF-8'), $title, $markup);
290
		}
291
292
		return $markup;
293
	}
@@ 337-341 (lines=5) @@
334
			$title = ' title="' . htmlspecialchars($alt, ENT_QUOTES, 'UTF-8') . '"';
335
		}
336
337
		if (!empty($url))
338
		{
339
			$markup = sprintf('<a href="%s"%s>%s</a>',
340
				htmlspecialchars($url, ENT_QUOTES, 'UTF-8'), $title, $markup);
341
		}
342
343
		return $markup;
344
	}