Code Duplication    Length = 23-23 lines in 2 locations

apps/encryption/lib/crypto/encryptall.php 1 location

@@ 93-115 (lines=23) @@
90
	 * @param QuestionHelper $questionHelper
91
	 * @param ISecureRandom $secureRandom
92
	 */
93
	public function __construct(
94
		Setup $userSetup,
95
		IUserManager $userManager,
96
		View $rootView,
97
		KeyManager $keyManager,
98
		IConfig $config,
99
		IMailer $mailer,
100
		IL10N $l,
101
		QuestionHelper $questionHelper,
102
		ISecureRandom $secureRandom
103
	) {
104
		$this->userSetup = $userSetup;
105
		$this->userManager = $userManager;
106
		$this->rootView = $rootView;
107
		$this->keyManager = $keyManager;
108
		$this->config = $config;
109
		$this->mailer = $mailer;
110
		$this->l = $l;
111
		$this->questionHelper = $questionHelper;
112
		$this->secureRandom = $secureRandom;
113
		// store one time passwords for the users
114
		$this->userPasswords = array();
115
	}
116
117
	/**
118
	 * start to encrypt all files

lib/private/Share20/Manager.php 1 location

@@ 86-108 (lines=23) @@
83
	 * @param IUserManager $userManager
84
	 * @param IRootFolder $rootFolder
85
	 */
86
	public function __construct(
87
			ILogger $logger,
88
			IConfig $config,
89
			ISecureRandom $secureRandom,
90
			IHasher $hasher,
91
			IMountManager $mountManager,
92
			IGroupManager $groupManager,
93
			IL10N $l,
94
			IProviderFactory $factory,
95
			IUserManager $userManager,
96
			IRootFolder $rootFolder
97
	) {
98
		$this->logger = $logger;
99
		$this->config = $config;
100
		$this->secureRandom = $secureRandom;
101
		$this->hasher = $hasher;
102
		$this->mountManager = $mountManager;
103
		$this->groupManager = $groupManager;
104
		$this->l = $l;
105
		$this->factory = $factory;
106
		$this->userManager = $userManager;
107
		$this->rootFolder = $rootFolder;
108
	}
109
110
	/**
111
	 * Convert from a full share id to a tuple (providerId, shareId)