Code Duplication    Length = 9-10 lines in 6 locations

modules/leaders.php 1 location

@@ 76-85 (lines=10) @@
73
	* @param string $phpbb_root_path phpBB root path
74
	* @param \phpbb\user $user phpBB user object
75
	*/
76
	public function __construct($auth, $config, $db, $template, $phpbb_root_path, $phpEx, $user)
77
	{
78
		$this->auth = $auth;
79
		$this->config = $config;
80
		$this->db = $db;
81
		$this->template = $template;
82
		$this->php_ext = $phpEx;
83
		$this->phpbb_root_path = $phpbb_root_path;
84
		$this->user = $user;
85
	}
86
87
	/**
88
	* {@inheritdoc}

modules/recent.php 1 location

@@ 82-91 (lines=10) @@
79
	* @param string $phpbb_root_path phpBB root path
80
	* @param string $phpEx php file extension
81
	*/
82
	public function __construct($auth, $config, $db, $request, $template, $phpbb_root_path, $phpEx)
83
	{
84
		$this->auth = $auth;
85
		$this->config = $config;
86
		$this->db = $db;
87
		$this->request = $request;
88
		$this->template = $template;
89
		$this->phpbb_root_path = $phpbb_root_path;
90
		$this->php_ext = $phpEx;
91
	}
92
93
	/**
94
	* {@inheritdoc}

modules/stylechanger.php 1 location

@@ 72-80 (lines=9) @@
69
	* @param \phpbb\request\request_interface $request phpBB request
70
	* @param \phpbb\user $user phpBB user object
71
	*/
72
	public function __construct($config, $modules_helper, $template, $db, $request, $user)
73
	{
74
		$this->config = $config;
75
		$this->modules_helper = $modules_helper;
76
		$this->template = $template;
77
		$this->db = $db;
78
		$this->request = $request;
79
		$this->user = $user;
80
	}
81
82
	/**
83
	* {@inheritdoc}

modules/welcome.php 1 location

@@ 78-86 (lines=9) @@
75
	* @param string $phpbb_root_path phpBB root path
76
	* @param string $phpEx php file extension
77
	*/
78
	public function __construct($config, $request, $template, $user, $phpbb_root_path, $phpEx)
79
	{
80
		$this->config = $config;
81
		$this->request = $request;
82
		$this->template = $template;
83
		$this->user = $user;
84
		$this->phpbb_root_path = $phpbb_root_path;
85
		$this->php_ext = $phpEx;
86
	}
87
88
	/**
89
	* {@inheritdoc}

modules/whois_online.php 1 location

@@ 82-91 (lines=10) @@
79
	* @param string $phpbb_root_path phpBB root path
80
	* @param string $phpEx php file extension
81
	*/
82
	public function __construct($auth, $config, $db, $template, $user, $phpbb_root_path, $phpEx)
83
	{
84
		$this->auth = $auth;
85
		$this->config = $config;
86
		$this->db = $db;
87
		$this->template = $template;
88
		$this->user = $user;
89
		$this->phpbb_root_path = $phpbb_root_path;
90
		$this->php_ext = $phpEx;
91
	}
92
93
	/**
94
	* {@inheritdoc}

portal/fetch_posts.php 1 location

@@ 109-117 (lines=9) @@
106
	* @param \board3\portal\includes\modules_helper	$modules_helper Board3 modules helper
107
	* @param \phpbb\user				$user	phpBB user object
108
	*/
109
	public function __construct($auth, $cache, $config, $db, $modules_helper, $user)
110
	{
111
		$this->auth = $auth;
112
		$this->cache = $cache;
113
		$this->config = $config;
114
		$this->db = $db;
115
		$this->modules_helper = $modules_helper;
116
		$this->user = $user;
117
	}
118
119
	/**
120
	* Get posts defined by type and other settings