Code Duplication    Length = 11-13 lines in 2 locations

event/listener.php 1 location

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

helper/session_helper.php 1 location

@@ 87-99 (lines=13) @@
84
	 * @param string                   $registration_table
85
	 * @param string                   $user_table
86
	 */
87
	public function __construct(driver_interface $db, config $config, user $user, service_collection $modules, template $template, helper $controller_helper, $registration_table, $user_table)
88
	{
89
		$this->db					= $db;
90
		$this->user					= $user;
91
		$this->config				= $config;
92
		$this->template 			= $template;
93
		$this->controller_helper 	= $controller_helper;
94
		$this->registration_table	= $registration_table;
95
		$this->user_table			= $user_table;
96
97
		$this->validateModules($modules);
98
99
	}
100
101
	/**
102
	 * Register the tagged modules if they are enabled.