Code Duplication    Length = 4-4 lines in 2 locations

writing-on-github.php 2 locations

@@ 208-211 (lines=4) @@
205
206
		$content = preg_replace_callback(
207
			'/(<img [^>]*?src=[\'"])\s*(\/images\/[^\s#]\S+)\s*([\'"][^>]*?>)/',
208
			function($matchs) use ($baseurl) {
209
				$url = $baseurl . $matchs[2];
210
				return "${matchs[1]}$url${matchs[3]}";
211
			},
212
			$content
213
		);
214
@@ 217-220 (lines=4) @@
214
215
		$content = preg_replace_callback(
216
			'/(<a [^>]*?href=[\'"])\s*(\/images\/[^\s#]\S+)\s*([\'"][^>]*?>)/',
217
			function($matchs) use ($baseurl) {
218
				$url = $baseurl . $matchs[2];
219
				return "${matchs[1]}$url${matchs[3]}";
220
			},
221
			$content
222
		);
223
		return $content;