Code Duplication    Length = 12-13 lines in 2 locations

controller/main_controller.php 1 location

@@ 88-100 (lines=13) @@
85
	 * @param string $root_path
86
	 * @param string $php_ext
87
	 */
88
	public function __construct(helper $controller_helper, driver_interface $db, template $template, user $user, request_interface $request, config $config, session_helper_interface $session_helper, $root_path, $php_ext)
89
	{
90
		$this->controller_helper 	= $controller_helper;
91
		$this->template 			= $template;
92
		$this->db					= $db;
93
		$this->user					= $user;
94
		$this->request				= $request;
95
		$this->config				= $config;
96
		$this->session_helper		= $session_helper;
97
		$this->root_path			= $root_path;
98
		$this->php_ext				= $php_ext;
99
100
	}
101
102
	/**
103
	 * @param int $user_id

event/listener.php 1 location

@@ 90-101 (lines=12) @@
87
	 * @param string                            $php_ext
88
	 * @param string                            $root_path
89
	 */
90
	public function __construct(session_helper_interface $session_helper, helper $controller_helper, user $user, request_interface $request, driver_interface $db, config $config, template $template, $php_ext, $root_path)
91
	{
92
		$this->session_helper		= $session_helper;
93
		$this->controller_helper 	= $controller_helper;
94
		$this->user					= $user;
95
		$this->request				= $request;
96
		$this->config				= $config;
97
		$this->db					= $db;
98
		$this->php_ext				= $php_ext;
99
		$this->root_path			= $root_path;
100
		$this->template				= $template;
101
	}
102
103
	/**
104
	 * Assign functions defined in this class to event listeners in the core