Code Duplication    Length = 16-16 lines in 2 locations

core/business/EE_Processor_Base.class.php 1 location

@@ 63-78 (lines=16) @@
60
	 * @param array $info
61
	 * @param bool $display_request
62
	 */
63
	protected function log( $class = '', $func = '', $line = '', EE_Transaction $transaction, $info = array(), $display_request = false ) {
64
		EE_Registry::instance()->load_helper( 'Debug_Tools' );
65
		if ( WP_DEBUG && false ) {
66
			if ( $transaction instanceof EE_Transaction ) {
67
				// don't serialize objects
68
				$info = EEH_Debug_Tools::strip_objects( $info );
69
				if ( $transaction->ID() ) {
70
					$info[ 'TXN_status' ] = $transaction->status_ID();
71
					$info[ 'TXN_reg_steps' ] = $transaction->reg_steps();
72
					$index = 'EE_Transaction: ' . $transaction->ID();
73
					EEH_Debug_Tools::log( $class, $func, $line, $info, $display_request, $index );
74
				}
75
			}
76
		}
77
78
	}
79
80
81

modules/messages/EED_Messages.module.php 1 location

@@ 785-800 (lines=16) @@
782
	 * @param array $info
783
	 * @param bool $display_request
784
	 */
785
	protected static function log( $class = '', $func = '', $line = '', EE_Transaction $transaction, $info = array(), $display_request = false ) {
786
		EE_Registry::instance()->load_helper('Debug_Tools');
787
		if ( WP_DEBUG && false ) {
788
			if ( $transaction instanceof EE_Transaction ) {
789
				// don't serialize objects
790
				$info = EEH_Debug_Tools::strip_objects( $info );
791
				$info[ 'TXN_status' ] = $transaction->status_ID();
792
				$info[ 'TXN_reg_steps' ] = $transaction->reg_steps();
793
				if ( $transaction->ID() ) {
794
					$index = 'EE_Transaction: ' . $transaction->ID();
795
					EEH_Debug_Tools::log( $class, $func, $line, $info, $display_request, $index );
796
				}
797
			}
798
		}
799
800
	}
801
802
}
803
// End of file EED_Messages.module.php