Code Duplication    Length = 10-10 lines in 2 locations

event/main_listener.php 1 location

@@ 68-77 (lines=10) @@
65
	 * @param \phpbb\ads\location\manager			$location_manager	Template location manager object
66
	 * @param \phpbb\controller\helper				$controller_helper	Controller helper object
67
	 */
68
	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)
69
	{
70
		$this->template = $template;
71
		$this->user = $user;
72
		$this->config_text = $config_text;
73
		$this->config = $config;
74
		$this->manager = $manager;
75
		$this->location_manager = $location_manager;
76
		$this->controller_helper = $controller_helper;
77
	}
78
79
	/**
80
	 * Load common language file during user setup

controller/admin_helper.php 1 location

@@ 50-59 (lines=10) @@
47
	 * @param string							$root_path			phpBB root path
48
	 * @param string							$php_ext			PHP extension
49
	 */
50
	public function __construct(\phpbb\user $user, \phpbb\language\language $language, \phpbb\template\template $template, \phpbb\log\log $log, \phpbb\ads\location\manager $location_manager, $root_path, $php_ext)
51
	{
52
		$this->user = $user;
53
		$this->language = $language;
54
		$this->template = $template;
55
		$this->log = $log;
56
		$this->location_manager = $location_manager;
57
		$this->root_path = $root_path;
58
		$this->php_ext = $php_ext;
59
	}
60
61
	/**
62
	 * Assign ad data for ACP form template.