Code Duplication    Length = 4-4 lines in 2 locations

writing-on-github.php 2 locations

@@ 216-219 (lines=4) @@
213
214
		$content = preg_replace_callback(
215
			'/(<img [^>]*?src=[\'"])\s*(\/images\/[^\s#]\S+)\s*([\'"][^>]*?>)/',
216
			function($matchs) use ($baseurl) {
217
				$url = $baseurl . $matchs[2];
218
				return "${matchs[1]}$url${matchs[3]}";
219
			},
220
			$content
221
		);
222
@@ 225-228 (lines=4) @@
222
223
		$content = preg_replace_callback(
224
			'/(<a [^>]*?href=[\'"])\s*(\/images\/[^\s#]\S+)\s*([\'"][^>]*?>)/',
225
			function($matchs) use ($baseurl) {
226
				$url = $baseurl . $matchs[2];
227
				return "${matchs[1]}$url${matchs[3]}";
228
			},
229
			$content
230
		);
231
		return $content;