Code Duplication    Length = 18-21 lines in 2 locations

lib/controller/accountscontroller.php 1 location

@@ 85-105 (lines=21) @@
82
	 * @param IL10N $l10n
83
	 * @param ICrypto $crypto
84
	 */
85
	public function __construct($appName,
86
		$request,
87
		$accountService,
88
		$currentUserId,
89
		$userFolder,
90
		$contactsIntegration,
91
		$autoConfig,
92
		$logger,
93
		IL10N $l10n,
94
		ICrypto $crypto
95
	) {
96
		parent::__construct($appName, $request);
97
		$this->accountService = $accountService;
98
		$this->currentUserId = $currentUserId;
99
		$this->userFolder = $userFolder;
100
		$this->contactsIntegration = $contactsIntegration;
101
		$this->autoConfig = $autoConfig;
102
		$this->logger = $logger;
103
		$this->l10n = $l10n;
104
		$this->crypto = $crypto;
105
	}
106
107
	/**
108
	 * @NoAdminRequired

lib/controller/messagescontroller.php 1 location

@@ 83-100 (lines=18) @@
80
	 * @param $l10n
81
	 * @param IMimeTypeDetector $mimeTypeDetector
82
	 */
83
	public function __construct($appName,
84
								$request,
85
								AccountService $accountService,
86
								$currentUserId,
87
								$userFolder,
88
								$contactsIntegration,
89
								$logger,
90
								$l10n,
91
								IMimeTypeDetector $mimeTypeDetector) {
92
		parent::__construct($appName, $request);
93
		$this->accountService = $accountService;
94
		$this->currentUserId = $currentUserId;
95
		$this->userFolder = $userFolder;
96
		$this->contactsIntegration = $contactsIntegration;
97
		$this->logger = $logger;
98
		$this->l10n = $l10n;
99
		$this->mimeTypeDetector = $mimeTypeDetector;
100
	}
101
102
	/**
103
	 * @NoAdminRequired