Code Duplication    Length = 11-13 lines in 2 locations

src/wp-includes/rss.php 2 locations

@@ 387-397 (lines=11) @@
384
		return "$k=\"$v\"";
385
	}
386
387
	function error( $errormsg, $lvl = E_USER_WARNING ) {
388
		// append PHP's error message if track_errors enabled
389
		if ( isset($php_errormsg) ) {
390
			$errormsg .= " ($php_errormsg)";
391
		}
392
		if ( MAGPIE_DEBUG ) {
393
			trigger_error( $errormsg, $lvl);
394
		} else {
395
			error_log( $errormsg, 0);
396
		}
397
	}
398
399
}
400
@@ 823-835 (lines=13) @@
820
	Function:	error
821
	Purpose:	register error
822
\*=======================================================================*/
823
	function error ($errormsg, $lvl=E_USER_WARNING) {
824
		// append PHP's error message if track_errors enabled
825
		if ( isset($php_errormsg) ) {
826
			$errormsg .= " ($php_errormsg)";
827
		}
828
		$this->ERROR = $errormsg;
829
		if ( MAGPIE_DEBUG ) {
830
			trigger_error( $errormsg, $lvl);
831
		}
832
		else {
833
			error_log( $errormsg, 0);
834
		}
835
	}
836
			function debug ($debugmsg, $lvl=E_USER_NOTICE) {
837
		if ( MAGPIE_DEBUG ) {
838
			$this->error("MagpieRSS [debug] $debugmsg", $lvl);