Code Duplication    Length = 27-29 lines in 3 locations

apps/federatedfilesharing/lib/ocm/CloudFederationProviderFiles.php 1 location

@@ 111-138 (lines=28) @@
108
	 * @param IDBConnection $connection
109
	 * @param IGroupManager $groupManager
110
	 */
111
	public function __construct(IAppManager $appManager,
112
								FederatedShareProvider $federatedShareProvider,
113
								AddressHandler $addressHandler,
114
								ILogger $logger,
115
								IUserManager $userManager,
116
								ICloudIdManager $cloudIdManager,
117
								IActivityManager $activityManager,
118
								INotificationManager $notificationManager,
119
								IURLGenerator $urlGenerator,
120
								ICloudFederationFactory $cloudFederationFactory,
121
								ICloudFederationProviderManager $cloudFederationProviderManager,
122
								IDBConnection $connection,
123
								IGroupManager $groupManager
124
	) {
125
		$this->appManager = $appManager;
126
		$this->federatedShareProvider = $federatedShareProvider;
127
		$this->addressHandler = $addressHandler;
128
		$this->logger = $logger;
129
		$this->userManager = $userManager;
130
		$this->cloudIdManager = $cloudIdManager;
131
		$this->activityManager = $activityManager;
132
		$this->notificationManager = $notificationManager;
133
		$this->urlGenerator = $urlGenerator;
134
		$this->cloudFederationFactory = $cloudFederationFactory;
135
		$this->cloudFederationProviderManager = $cloudFederationProviderManager;
136
		$this->connection = $connection;
137
		$this->groupManager = $groupManager;
138
	}
139
140
141

apps/federatedfilesharing/lib/FederatedShareProvider.php 1 location

@@ 118-144 (lines=27) @@
115
	 * @param \OCP\GlobalScale\IConfig $globalScaleConfig
116
	 * @param ICloudFederationProviderManager $cloudFederationProviderManager
117
	 */
118
	public function __construct(
119
			IDBConnection $connection,
120
			AddressHandler $addressHandler,
121
			Notifications $notifications,
122
			TokenHandler $tokenHandler,
123
			IL10N $l10n,
124
			ILogger $logger,
125
			IRootFolder $rootFolder,
126
			IConfig $config,
127
			IUserManager $userManager,
128
			ICloudIdManager $cloudIdManager,
129
			\OCP\GlobalScale\IConfig $globalScaleConfig,
130
			ICloudFederationProviderManager $cloudFederationProviderManager
131
	) {
132
		$this->dbConnection = $connection;
133
		$this->addressHandler = $addressHandler;
134
		$this->notifications = $notifications;
135
		$this->tokenHandler = $tokenHandler;
136
		$this->l = $l10n;
137
		$this->logger = $logger;
138
		$this->rootFolder = $rootFolder;
139
		$this->config = $config;
140
		$this->userManager = $userManager;
141
		$this->cloudIdManager = $cloudIdManager;
142
		$this->gsConfig = $globalScaleConfig;
143
		$this->cloudFederationProviderManager = $cloudFederationProviderManager;
144
	}
145
146
	/**
147
	 * Return the identifier of this provider.

apps/sharebymail/lib/ShareByMailProvider.php 1 location

@@ 122-150 (lines=29) @@
119
	 * @param IHasher $hasher
120
	 * @param CapabilitiesManager $capabilitiesManager
121
	 */
122
	public function __construct(
123
		IDBConnection $connection,
124
		ISecureRandom $secureRandom,
125
		IUserManager $userManager,
126
		IRootFolder $rootFolder,
127
		IL10N $l,
128
		ILogger $logger,
129
		IMailer $mailer,
130
		IURLGenerator $urlGenerator,
131
		IManager $activityManager,
132
		SettingsManager $settingsManager,
133
		Defaults $defaults,
134
		IHasher $hasher,
135
		CapabilitiesManager $capabilitiesManager
136
	) {
137
		$this->dbConnection = $connection;
138
		$this->secureRandom = $secureRandom;
139
		$this->userManager = $userManager;
140
		$this->rootFolder = $rootFolder;
141
		$this->l = $l;
142
		$this->logger = $logger;
143
		$this->mailer = $mailer;
144
		$this->urlGenerator = $urlGenerator;
145
		$this->activityManager = $activityManager;
146
		$this->settingsManager = $settingsManager;
147
		$this->defaults = $defaults;
148
		$this->hasher = $hasher;
149
		$this->capabilitiesManager = $capabilitiesManager;
150
	}
151
152
	/**
153
	 * Share a path