Code Duplication    Length = 17-20 lines in 2 locations

controller/links.php 1 location

@@ 88-107 (lines=20) @@
85
	* @param string									$root_path			phpBB root path
86
	* @param string									$php_ext   			phpEx
87
	*/
88
	public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\config\config $config, \phpbb\language\language $language, \phpbb\template\template $template, \phpbb\user $user, \phpbb\controller\helper $helper, \phpbb\request\request $request, \phpbb\auth\auth $auth, \phpbb\captcha\factory $captcha_factory, \ernadoo\phpbbdirectory\core\categorie $categorie, \ernadoo\phpbbdirectory\core\link $link, $root_path, $php_ext)
89
	{
90
		$this->db				= $db;
91
		$this->config			= $config;
92
		$this->language			= $language;
93
		$this->template			= $template;
94
		$this->user				= $user;
95
		$this->helper			= $helper;
96
		$this->request			= $request;
97
		$this->auth				= $auth;
98
		$this->captcha_factory 	= $captcha_factory;
99
		$this->categorie		= $categorie;
100
		$this->link				= $link;
101
		$this->root_path		= $root_path;
102
		$this->php_ext			= $php_ext;
103
104
		$template->assign_vars(array(
105
			'S_PHPBB_DIRECTORY'	=> true,
106
		));
107
	}
108
109
	/**
110
	* Delete a link

core/link.php 1 location

@@ 75-91 (lines=17) @@
72
	* @param string         									$root_path			phpBB root path
73
	* @param string         									$php_ext			phpEx
74
	*/
75
	public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\config\config $config, \phpbb\language\language $language, \phpbb\template\template $template, \phpbb\user $user, \phpbb\controller\helper $helper, \phpbb\request\request $request, \phpbb\auth\auth $auth, \phpbb\notification\manager $notification, \phpbb\filesystem\filesystem_interface $filesystem, \FastImageSize\FastImageSize $imagesize, \phpbb\files\upload $files_upload, $root_path, $php_ext)
76
	{
77
		$this->db				= $db;
78
		$this->config			= $config;
79
		$this->language			= $language;
80
		$this->template			= $template;
81
		$this->user				= $user;
82
		$this->helper			= $helper;
83
		$this->request			= $request;
84
		$this->auth				= $auth;
85
		$this->notification		= $notification;
86
		$this->filesystem		= $filesystem;
87
		$this->imagesize		= $imagesize;
88
		$this->files_upload 	= $files_upload;
89
		$this->root_path		= $root_path;
90
		$this->php_ext			= $php_ext;
91
	}
92
93
	/**
94
	* Add a link into db