Code Duplication    Length = 19-23 lines in 4 locations

apps/federatedfilesharing/lib/FederatedShareProvider.php 1 location

@@ 101-123 (lines=23) @@
98
	 * @param IUserManager $userManager
99
	 * @param ICloudIdManager $cloudIdManager
100
	 */
101
	public function __construct(
102
			IDBConnection $connection,
103
			AddressHandler $addressHandler,
104
			Notifications $notifications,
105
			TokenHandler $tokenHandler,
106
			IL10N $l10n,
107
			ILogger $logger,
108
			IRootFolder $rootFolder,
109
			IConfig $config,
110
			IUserManager $userManager,
111
			ICloudIdManager $cloudIdManager
112
	) {
113
		$this->dbConnection = $connection;
114
		$this->addressHandler = $addressHandler;
115
		$this->notifications = $notifications;
116
		$this->tokenHandler = $tokenHandler;
117
		$this->l = $l10n;
118
		$this->logger = $logger;
119
		$this->rootFolder = $rootFolder;
120
		$this->config = $config;
121
		$this->userManager = $userManager;
122
		$this->cloudIdManager = $cloudIdManager;
123
	}
124
125
	/**
126
	 * Return the identifier of this provider.

lib/private/Settings/Manager.php 1 location

@@ 77-99 (lines=23) @@
74
	 * @param Mapper $mapper
75
	 * @param IURLGenerator $url
76
	 */
77
	public function __construct(
78
		ILogger $log,
79
		IDBConnection $dbc,
80
		IL10N $l,
81
		IConfig $config,
82
		EncryptionManager $encryptionManager,
83
		IUserManager $userManager,
84
		ILockingProvider $lockingProvider,
85
		IRequest $request,
86
		Mapper $mapper,
87
		IURLGenerator $url
88
	) {
89
		$this->log = $log;
90
		$this->dbc = $dbc;
91
		$this->mapper = $mapper;
92
		$this->l = $l;
93
		$this->config = $config;
94
		$this->encryptionManager = $encryptionManager;
95
		$this->userManager = $userManager;
96
		$this->lockingProvider = $lockingProvider;
97
		$this->request = $request;
98
		$this->url = $url;
99
	}
100
101
	/**
102
	 * @inheritdoc

apps/sharebymail/lib/ShareByMailProvider.php 1 location

@@ 106-128 (lines=23) @@
103
	 * @param IManager $activityManager
104
	 * @param SettingsManager $settingsManager
105
	 */
106
	public function __construct(
107
		IDBConnection $connection,
108
		ISecureRandom $secureRandom,
109
		IUserManager $userManager,
110
		IRootFolder $rootFolder,
111
		IL10N $l,
112
		ILogger $logger,
113
		IMailer $mailer,
114
		IURLGenerator $urlGenerator,
115
		IManager $activityManager,
116
		SettingsManager $settingsManager
117
	) {
118
		$this->dbConnection = $connection;
119
		$this->secureRandom = $secureRandom;
120
		$this->userManager = $userManager;
121
		$this->rootFolder = $rootFolder;
122
		$this->l = $l;
123
		$this->logger = $logger;
124
		$this->mailer = $mailer;
125
		$this->urlGenerator = $urlGenerator;
126
		$this->activityManager = $activityManager;
127
		$this->settingsManager = $settingsManager;
128
	}
129
130
	/**
131
	 * Share a path

settings/Mailer/NewUserMailHelper.php 1 location

@@ 67-85 (lines=19) @@
64
	 * @param ICrypto $crypto
65
	 * @param string $fromAddress
66
	 */
67
	public function __construct(ThemingDefaults $themingDefaults,
68
								IURLGenerator $urlGenerator,
69
								IL10N $l10n,
70
								IMailer $mailer,
71
								ISecureRandom $secureRandom,
72
								ITimeFactory $timeFactory,
73
								IConfig $config,
74
								ICrypto $crypto,
75
								$fromAddress) {
76
		$this->themingDefaults = $themingDefaults;
77
		$this->urlGenerator = $urlGenerator;
78
		$this->l10n = $l10n;
79
		$this->mailer = $mailer;
80
		$this->secureRandom = $secureRandom;
81
		$this->timeFactory = $timeFactory;
82
		$this->config = $config;
83
		$this->crypto = $crypto;
84
		$this->fromAddress = $fromAddress;
85
	}
86
87
	/**
88
	 * Set the IL10N object