Code Duplication    Length = 12-13 lines in 2 locations

controller/helper.php 1 location

@@ 62-74 (lines=13) @@
59
	 * @param string                      $root_path        phpBB root path
60
	 * @param string                      $php_ext          PHP extension
61
	 */
62
	public function __construct(\phpbb\user $user, \phpbb\user_loader $user_loader, \phpbb\language\language $language, \phpbb\template\template $template, \phpbb\log\log $log, \phpbb\ads\ad\manager $manager, \phpbb\ads\location\manager $location_manager, \phpbb\group\helper $group_helper, $root_path, $php_ext)
63
	{
64
		$this->user = $user;
65
		$this->user_loader = $user_loader;
66
		$this->language = $language;
67
		$this->template = $template;
68
		$this->log = $log;
69
		$this->location_manager = $location_manager;
70
		$this->manager = $manager;
71
		$this->group_helper = $group_helper;
72
		$this->root_path = $root_path;
73
		$this->php_ext = $php_ext;
74
	}
75
76
	/**
77
	 * Assign ad data for ACP form template.

event/main_listener.php 1 location

@@ 78-89 (lines=12) @@
75
	 * @param \phpbb\request\request				$request			Request object
76
	 * @param string								$php_ext			PHP extension
77
	 */
78
	public function __construct(\phpbb\template\template $template, \phpbb\template\context $template_context, \phpbb\user $user, \phpbb\config\config $config, \phpbb\ads\ad\manager $manager, \phpbb\ads\location\manager $location_manager, \phpbb\controller\helper $controller_helper, \phpbb\request\request $request, $php_ext)
79
	{
80
		$this->template = $template;
81
		$this->template_context = $template_context;
82
		$this->user = $user;
83
		$this->config = $config;
84
		$this->manager = $manager;
85
		$this->location_manager = $location_manager;
86
		$this->controller_helper = $controller_helper;
87
		$this->request = $request;
88
		$this->php_ext = $php_ext;
89
	}
90
91
	/**
92
	 * Wire up u_phpbb_ads permission