Code Duplication    Length = 15-15 lines in 2 locations

core/business/EE_Processor_Base.class.php 1 location

@@ 63-77 (lines=15) @@
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
		if ( WP_DEBUG && false ) {
65
			if ( $transaction instanceof EE_Transaction ) {
66
				// don't serialize objects
67
				$info = EEH_Debug_Tools::strip_objects( $info );
68
				if ( $transaction->ID() ) {
69
					$info[ 'TXN_status' ] = $transaction->status_ID();
70
					$info[ 'TXN_reg_steps' ] = $transaction->reg_steps();
71
					$index = 'EE_Transaction: ' . $transaction->ID();
72
					EEH_Debug_Tools::log( $class, $func, $line, $info, $display_request, $index );
73
				}
74
			}
75
		}
76
77
	}
78
79
80

modules/messages/EED_Messages.module.php 1 location

@@ 1059-1073 (lines=15) @@
1056
     * @param array           $info
1057
     * @param bool            $display_request
1058
     */
1059
    protected static function log(
1060
        $class = '',
1061
        $func = '',
1062
        $line = '',
1063
        EE_Transaction $transaction,
1064
        $info = array(),
1065
        $display_request = false
1066
    ) {
1067
        if (WP_DEBUG && false) {
1068
            if ($transaction instanceof EE_Transaction) {
1069
                // don't serialize objects
1070
                $info                  = EEH_Debug_Tools::strip_objects($info);
1071
                $info['TXN_status']    = $transaction->status_ID();
1072
                $info['TXN_reg_steps'] = $transaction->reg_steps();
1073
                if ($transaction->ID()) {
1074
                    $index = 'EE_Transaction: ' . $transaction->ID();
1075
                    EEH_Debug_Tools::log($class, $func, $line, $info, $display_request, $index);
1076
                }