Code Duplication    Length = 10-11 lines in 2 locations

controller/admin_controller.php 1 location

@@ 58-67 (lines=10) @@
55
	* @param string									$php_ext			PHP extension
56
	* @param string									$ext_path			Path to this extension
57
	*/
58
	public function __construct(\phpbb\template\template $template, \phpbb\user $user, \phpbb\request\request $request, \phpbb\admanagement\ad\manager $manager, \phpbb\admanagement\location\manager $location_manager, $php_ext, $ext_path)
59
	{
60
		$this->template = $template;
61
		$this->user = $user;
62
		$this->request = $request;
63
		$this->manager = $manager;
64
		$this->location_manager = $location_manager;
65
		$this->php_ext = $php_ext;
66
		$this->ext_path = $ext_path;
67
	}
68
69
	/**
70
	* Process user request

event/main_listener.php 1 location

@@ 72-82 (lines=11) @@
69
	* @param string									$root_path			phpBB root path
70
	* @param string									$php_ext			PHP extension
71
	*/
72
	public function __construct(\phpbb\request\request $request, \phpbb\template\template $template, \phpbb\user $user, \phpbb\config\config $config, \phpbb\admanagement\ad\manager $manager, \phpbb\admanagement\location\manager $location_manager, $root_path, $php_ext)
73
	{
74
		$this->request = $request;
75
		$this->template = $template;
76
		$this->user = $user;
77
		$this->config = $config;
78
		$this->manager = $manager;
79
		$this->location_manager = $location_manager;
80
		$this->root_path = $root_path;
81
		$this->php_ext = $php_ext;
82
	}
83
84
	/**
85
	 * Stop previewing advertisement