Code Duplication    Length = 10-11 lines in 2 locations

controller/helper.php 1 location

@@ 54-64 (lines=11) @@
51
	 * @param string                      $root_path        phpBB root path
52
	 * @param string                      $php_ext          PHP extension
53
	 */
54
	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\location\manager $location_manager, $root_path, $php_ext)
55
	{
56
		$this->user = $user;
57
		$this->user_loader = $user_loader;
58
		$this->language = $language;
59
		$this->template = $template;
60
		$this->log = $log;
61
		$this->location_manager = $location_manager;
62
		$this->root_path = $root_path;
63
		$this->php_ext = $php_ext;
64
	}
65
66
	/**
67
	 * Assign ad data for ACP form template.

event/main_listener.php 1 location

@@ 72-81 (lines=10) @@
69
	 * @param \phpbb\ads\location\manager			$location_manager	Template location manager object
70
	 * @param \phpbb\controller\helper				$controller_helper	Controller helper object
71
	 */
72
	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)
73
	{
74
		$this->template = $template;
75
		$this->user = $user;
76
		$this->config_text = $config_text;
77
		$this->config = $config;
78
		$this->manager = $manager;
79
		$this->location_manager = $location_manager;
80
		$this->controller_helper = $controller_helper;
81
	}
82
83
	/**
84
	 * Wire up u_phpbb_ads permission