Code Duplication    Length = 11-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

@@ 77-87 (lines=11) @@
74
	 * @param string $php_ext
75
	 * @param string $root_path
76
	 */
77
	public function __construct(session_helper_interface $helper, helper $controller_helper, user $user, request_interface $request, driver_interface $db, config $config, $php_ext, $root_path)
78
	{
79
		$this->helper				= $helper;
80
		$this->controller_helper 	= $controller_helper;
81
		$this->user					= $user;
82
		$this->request				= $request;
83
		$this->config				= $config;
84
		$this->db					= $db;
85
		$this->php_ext				= $php_ext;
86
		$this->root_path			= $root_path;
87
	}
88
89
	/**
90
	 * Assign functions defined in this class to event listeners in the core