Code Duplication    Length = 25-26 lines in 2 locations

apps/federatedfilesharing/lib/FederatedShareProvider.php 1 location

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

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