Code Duplication    Length = 10-11 lines in 2 locations

controller/admin_controller.php 1 location

@@ 59-69 (lines=11) @@
56
	* @param \phpbb\ads\controller\admin_input 	$input			  Admin input object
57
	* @param \phpbb\ads\controller\admin_helper $helper			  Admin helper object
58
	*/
59
	public function __construct(\phpbb\template\template $template, \phpbb\user $user, \phpbb\request\request $request, \phpbb\ads\ad\manager $manager, \phpbb\config\db_text $config_text, \phpbb\config\config $config, \phpbb\ads\controller\admin_input $input, \phpbb\ads\controller\admin_helper $helper)
60
	{
61
		$this->template = $template;
62
		$this->user = $user;
63
		$this->request = $request;
64
		$this->manager = $manager;
65
		$this->config_text = $config_text;
66
		$this->config = $config;
67
		$this->input = $input;
68
		$this->helper = $helper;
69
	}
70
71
	/**
72
	 * Process user request for manage mode

event/main_listener.php 1 location

@@ 66-75 (lines=10) @@
63
	* @param \phpbb\ads\location\manager			$location_manager	Template location manager object
64
	* @param \phpbb\controller\helper				$controller_helper	Controller helper object
65
	*/
66
	public function __construct(\phpbb\template\template $template, \phpbb\user $user, \phpbb\config\db_text $config_text, \phpbb\config\config $config, \phpbb\ads\ad\manager $manager, \phpbb\ads\location\manager $location_manager, \phpbb\controller\helper $controller_helper)
67
	{
68
		$this->template = $template;
69
		$this->user = $user;
70
		$this->config_text = $config_text;
71
		$this->config = $config;
72
		$this->manager = $manager;
73
		$this->location_manager = $location_manager;
74
		$this->controller_helper = $controller_helper;
75
	}
76
77
	/**
78
	* Load common language file during user setup