Code Duplication    Length = 25-26 lines in 2 locations

apps/federatedfilesharing/lib/Controller/RequestHandlerController.php 1 location

@@ 104-129 (lines=26) @@
101
	 * @param ICloudFederationFactory $cloudFederationFactory
102
	 * @param ICloudFederationProviderManager $cloudFederationProviderManager
103
	 */
104
	public function __construct($appName,
105
								IRequest $request,
106
								FederatedShareProvider $federatedShareProvider,
107
								IDBConnection $connection,
108
								Share\IManager $shareManager,
109
								Notifications $notifications,
110
								AddressHandler $addressHandler,
111
								IUserManager $userManager,
112
								ICloudIdManager $cloudIdManager,
113
								ILogger $logger,
114
								ICloudFederationFactory $cloudFederationFactory,
115
								ICloudFederationProviderManager $cloudFederationProviderManager
116
	) {
117
		parent::__construct($appName, $request);
118
119
		$this->federatedShareProvider = $federatedShareProvider;
120
		$this->connection = $connection;
121
		$this->shareManager = $shareManager;
122
		$this->notifications = $notifications;
123
		$this->addressHandler = $addressHandler;
124
		$this->userManager = $userManager;
125
		$this->cloudIdManager = $cloudIdManager;
126
		$this->logger = $logger;
127
		$this->cloudFederationFactory = $cloudFederationFactory;
128
		$this->cloudFederationProviderManager = $cloudFederationProviderManager;
129
	}
130
131
	/**
132
	 * @NoCSRFRequired

apps/federatedfilesharing/lib/FederatedShareProvider.php 1 location

@@ 110-134 (lines=25) @@
107
	 * @param ICloudIdManager $cloudIdManager
108
	 * @param \OCP\GlobalScale\IConfig $globalScaleConfig
109
	 */
110
	public function __construct(
111
			IDBConnection $connection,
112
			AddressHandler $addressHandler,
113
			Notifications $notifications,
114
			TokenHandler $tokenHandler,
115
			IL10N $l10n,
116
			ILogger $logger,
117
			IRootFolder $rootFolder,
118
			IConfig $config,
119
			IUserManager $userManager,
120
			ICloudIdManager $cloudIdManager,
121
			\OCP\GlobalScale\IConfig $globalScaleConfig
122
	) {
123
		$this->dbConnection = $connection;
124
		$this->addressHandler = $addressHandler;
125
		$this->notifications = $notifications;
126
		$this->tokenHandler = $tokenHandler;
127
		$this->l = $l10n;
128
		$this->logger = $logger;
129
		$this->rootFolder = $rootFolder;
130
		$this->config = $config;
131
		$this->userManager = $userManager;
132
		$this->cloudIdManager = $cloudIdManager;
133
		$this->gsConfig = $globalScaleConfig;
134
	}
135
136
	/**
137
	 * Return the identifier of this provider.