Code Duplication    Length = 14-15 lines in 2 locations

controller/admin_currency_controller.php 1 location

@@ 43-56 (lines=14) @@
40
	 *
41
	 * @access public
42
	 */
43
	public function __construct(ContainerInterface $container, \phpbb\log\log $log, \skouat\ppde\operators\currency $ppde_operator_currency, \phpbb\request\request $request, \phpbb\template\template $template, \phpbb\user $user)
44
	{
45
		$this->container = $container;
46
		$this->log = $log;
47
		$this->ppde_operator = $ppde_operator_currency;
48
		$this->request = $request;
49
		$this->template = $template;
50
		$this->user = $user;
51
		parent::__construct(
52
			'currency',
53
			'PPDE_DC',
54
			'currency'
55
		);
56
	}
57
58
	/**
59
	 * Display the currency list

controller/admin_settings_controller.php 1 location

@@ 45-59 (lines=15) @@
42
	 *
43
	 * @access public
44
	 */
45
	public function __construct(\phpbb\config\config $config, ContainerInterface $container, \skouat\ppde\controller\main_controller $ppde_controller_main, \skouat\ppde\operators\currency $ppde_operator_currency, \phpbb\request\request $request, \phpbb\template\template $template, \phpbb\user $user)
46
	{
47
		$this->config = $config;
48
		$this->container = $container;
49
		$this->ppde_controller_main = $ppde_controller_main;
50
		$this->ppde_operator_currency = $ppde_operator_currency;
51
		$this->request = $request;
52
		$this->template = $template;
53
		$this->user = $user;
54
		parent::__construct(
55
			'settings',
56
			'PPDE_SETTINGS',
57
			''
58
		);
59
	}
60
61
	/**
62
	 * Display the general settings a user can configure for this extension