Code Duplication    Length = 5-5 lines in 2 locations

admin_pages/messages/Messages_Admin_Page.core.php 2 locations

@@ 2324-2328 (lines=5) @@
2321
2322
		//register messenger metaboxes
2323
		$m_template_path = EE_MSG_TEMPLATE_PATH . 'ee_msg_details_messenger_mt_meta_box.template.php';
2324
		foreach ( $m_boxes as $box => $label ) {
2325
			$callback_args = array( 'template_path' => $m_template_path, 'template_args' => $m_template_args[$box] );
2326
			$msgr = str_replace( '_a_box', '', $box );
2327
			add_meta_box( 'espresso_' . $msgr . '_settings', $label, create_function('$post, $metabox', 'echo EEH_Template::display_template( $metabox["args"]["template_path"], $metabox["args"]["template_args"], TRUE );'), $this->_current_screen_id, 'normal', 'high', $callback_args );
2328
		}
2329
2330
		//register message type metaboxes
2331
		$mt_template_path = EE_MSG_TEMPLATE_PATH . 'ee_msg_details_messenger_meta_box.template.php';
@@ 2332-2336 (lines=5) @@
2329
2330
		//register message type metaboxes
2331
		$mt_template_path = EE_MSG_TEMPLATE_PATH . 'ee_msg_details_messenger_meta_box.template.php';
2332
		foreach ( $mt_boxes as $box => $label ) {
2333
			$callback_args = array( 'template_path' => $mt_template_path, 'template_args' => $mt_template_args[$box] );
2334
			$mt = str_replace( '_i_box', '', $box );
2335
			add_meta_box( 'espresso_' . $mt . '_inactive_mts', $label, create_function('$post, $metabox', 'echo EEH_Template::display_template( $metabox["args"]["template_path"], $metabox["args"]["template_args"], TRUE );'), $this->_current_screen_id, 'side', 'high', $callback_args );
2336
		}
2337
2338
	}
2339