Code Duplication    Length = 10-10 lines in 2 locations

event/mcp_listener.php 2 locations

@@ 59-68 (lines=10) @@
56
		}
57
	}
58
59
	public function mcp_main_modify_fork_sql($event)
60
	{
61
		$sql_ary = $event['sql_ary'];
62
63
		$sql_ary['topic_attr_id']	= $event['topic_row']['topic_attr_id'];
64
		$sql_ary['topic_attr_user'] = $event['topic_row']['topic_attr_user'];
65
		$sql_ary['topic_attr_time'] = $event['topic_row']['topic_attr_time'];
66
67
		$event['sql_ary'] = $sql_ary;
68
	}
69
70
	public function mcp_main_modify_shadow_sql($event)
71
	{
@@ 70-79 (lines=10) @@
67
		$event['sql_ary'] = $sql_ary;
68
	}
69
70
	public function mcp_main_modify_shadow_sql($event)
71
	{
72
		$shadow = $event['shadow'];
73
74
		$shadow['topic_attr_id']	= $event['row']['topic_attr_id'];
75
		$shadow['topic_attr_user']	= $event['row']['topic_attr_user'];
76
		$shadow['topic_attr_time']	= $event['row']['topic_attr_time'];
77
78
		$event['shadow'] = $shadow;
79
	}
80
81
	public function mcp_select_assign_attributes($event)
82
	{