Code Duplication    Length = 5-5 lines in 2 locations

Michelf/Markdown.php 2 locations

@@ 1228-1232 (lines=5) @@
1225
		$codeblock = $matches[1];
1226
1227
		$codeblock = $this->outdent($codeblock);
1228
		if (is_callable($this->code_block_content_func)) {
1229
			$codeblock = call_user_func($this->code_block_content_func, $codeblock, "");
1230
		} else {
1231
			$codeblock = htmlspecialchars($codeblock, ENT_NOQUOTES);
1232
		}
1233
1234
		# trim leading newlines and trailing newlines
1235
		$codeblock = preg_replace('/\A\n+|\n+\z/', '', $codeblock);
@@ 1247-1251 (lines=5) @@
1244
	 * @return string
1245
	 */
1246
	protected function makeCodeSpan($code) {
1247
		if (is_callable($this->code_span_content_func)) {
1248
			$code = call_user_func($this->code_span_content_func, $code);
1249
		} else {
1250
			$code = htmlspecialchars(trim($code), ENT_NOQUOTES);
1251
		}
1252
		return $this->hashPart("<code>$code</code>");
1253
	}
1254