Code Duplication    Length = 10-10 lines in 2 locations

event/search_listener.php 1 location

@@ 63-72 (lines=10) @@
60
		);
61
	}
62
63
	public function search_assign_topic_attributes($event)
64
	{
65
		if (!empty($event['row']['topic_attr_id']))
66
		{
67
			$this->qte->get_users_by_topic_id((array) $event['row']['topic_id']);
68
			$tpl_ary = $event['tpl_ary'];
69
			$tpl_ary['TOPIC_ATTRIBUTE'] = $this->qte->attr_display($event['row']['topic_attr_id'], $event['row']['topic_attr_user'], $event['row']['topic_attr_time']);
70
			$event['tpl_ary'] = $tpl_ary;
71
		}
72
	}
73
74
	public function search_add_url_parameter($event)
75
	{

event/mcp_listener.php 1 location

@@ 48-57 (lines=10) @@
45
		);
46
	}
47
48
	public function assign_topic_attributes_mcp($event)
49
	{
50
		if (!empty($event['row']['topic_attr_id']))
51
		{
52
			$this->qte->get_users_by_user_id($event['row']['topic_attr_user']);
53
			$topic_row = $event['topic_row'];
54
			$topic_row['MCP_TOPIC_ATTRIBUTE'] = $this->qte->attr_display($event['row']['topic_attr_id'], $event['row']['topic_attr_user'], $event['row']['topic_attr_time']);
55
			$event['topic_row'] = $topic_row;
56
		}
57
	}
58
59
	public function mcp_main_modify_fork_sql($event)
60
	{