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
	}
@@ 336-340 (lines=5) @@
333
			$title = ' title="' . htmlspecialchars($alt, ENT_QUOTES, 'UTF-8') . '"';
334
		}
335
336
		if (!empty($url))
337
		{
338
			$markup = sprintf('<a href="%s"%s>%s</a>',
339
				htmlspecialchars($url, ENT_QUOTES, 'UTF-8'), $title, $markup);
340
		}
341
342
		return $markup;
343
	}