Code Duplication    Length = 5-5 lines in 2 locations

admin_pages/messages/Messages_Admin_Page.core.php 2 locations

@@ 2725-2729 (lines=5) @@
2722
2723
		//register messenger metaboxes
2724
		$m_template_path = EE_MSG_TEMPLATE_PATH . 'ee_msg_details_messenger_mt_meta_box.template.php';
2725
		foreach ( $m_boxes as $box => $label ) {
2726
			$callback_args = array( 'template_path' => $m_template_path, 'template_args' => $m_template_args[$box] );
2727
			$msgr = str_replace( '_a_box', '', $box );
2728
			add_meta_box(
2729
				'espresso_' . $msgr . '_settings',
2730
				$label,
2731
				create_function(
2732
					'$post, $metabox',
@@ 2744-2748 (lines=5) @@
2741
2742
		//register message type metaboxes
2743
		$mt_template_path = EE_MSG_TEMPLATE_PATH . 'ee_msg_details_messenger_meta_box.template.php';
2744
		foreach ( $mt_boxes as $box => $label ) {
2745
			$callback_args = array(
2746
				'template_path' => $mt_template_path, 'template_args' => $mt_template_args[ $box ]
2747
			);
2748
			$mt = str_replace( '_i_box', '', $box );
2749
			add_meta_box(
2750
				'espresso_' . $mt . '_inactive_mts',
2751
				$label,