Code Duplication    Length = 4-4 lines in 2 locations

writing-on-github.php 2 locations

@@ 185-188 (lines=4) @@
182
183
		$content = preg_replace_callback(
184
			'/(<img [^>]*?src=[\'"])\s*(\/images\/[^\s#]\S+)\s*([\'"][^>]*?>)/',
185
			function($matchs) use ($baseurl) {
186
				$url = $baseurl . $matchs[2];
187
				return "${matchs[1]}$url${matchs[3]}";
188
			},
189
			$content
190
		);
191
@@ 194-197 (lines=4) @@
191
192
		$content = preg_replace_callback(
193
			'/(<a [^>]*?href=[\'"])\s*(\/images\/[^\s#]\S+)\s*([\'"][^>]*?>)/',
194
			function($matchs) use ($baseurl) {
195
				$url = $baseurl . $matchs[2];
196
				return "${matchs[1]}$url${matchs[3]}";
197
			},
198
			$content
199
		);
200
		return $content;