Code Duplication    Length = 17-19 lines in 5 locations

settings/Hooks.php 1 location

@@ 58-74 (lines=17) @@
55
	/** @var IL10N */
56
	protected $l;
57
58
	public function __construct(IActivityManager $activityManager,
59
								IUserManager $userManager,
60
								IUserSession $userSession,
61
								IURLGenerator $urlGenerator,
62
								IMailer $mailer,
63
								IConfig $config,
64
								IFactory $languageFactory,
65
								IL10N $l) {
66
		$this->activityManager = $activityManager;
67
		$this->userManager = $userManager;
68
		$this->userSession = $userSession;
69
		$this->urlGenerator = $urlGenerator;
70
		$this->mailer = $mailer;
71
		$this->config = $config;
72
		$this->languageFactory = $languageFactory;
73
		$this->l = $l;
74
	}
75
76
	/**
77
	 * @param string $uid

settings/Mailer/NewUserMailHelper.php 1 location

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

lib/private/Settings/Personal/PersonalInfo.php 1 location

@@ 67-83 (lines=17) @@
64
	 * @param IFactory $l10nFactory
65
	 * @param IL10N $l
66
	 */
67
	public function __construct(
68
		IConfig $config,
69
		IUserManager $userManager,
70
		IGroupManager $groupManager,
71
		AccountManager $accountManager,
72
		IAppManager $appManager,
73
		IFactory $l10nFactory,
74
		IL10N $l
75
	) {
76
		$this->config = $config;
77
		$this->userManager = $userManager;
78
		$this->accountManager = $accountManager;
79
		$this->groupManager = $groupManager;
80
		$this->appManager = $appManager;
81
		$this->l10nFactory = $l10nFactory;
82
		$this->l = $l;
83
	}
84
85
	/**
86
	 * @return TemplateResponse returns the instance with all parameters set, ready to be rendered

lib/private/Share20/DefaultShareProvider.php 1 location

@@ 100-117 (lines=18) @@
97
	 * @param IL10N $l
98
	 * @param IURLGenerator $urlGenerator
99
	 */
100
	public function __construct(
101
			IDBConnection $connection,
102
			IUserManager $userManager,
103
			IGroupManager $groupManager,
104
			IRootFolder $rootFolder,
105
			IMailer $mailer,
106
			Defaults $defaults,
107
			IL10N $l,
108
			IURLGenerator $urlGenerator) {
109
		$this->dbConn = $connection;
110
		$this->userManager = $userManager;
111
		$this->groupManager = $groupManager;
112
		$this->rootFolder = $rootFolder;
113
		$this->mailer = $mailer;
114
		$this->defaults = $defaults;
115
		$this->l = $l;
116
		$this->urlGenerator = $urlGenerator;
117
	}
118
119
	/**
120
	 * Return the identifier of this provider.

apps/files_sharing/lib/Controller/DeletedShareAPIController.php 1 location

@@ 69-87 (lines=19) @@
66
	/** @var IServerContainer */
67
	private $serverContainer;
68
69
	public function __construct(string $appName,
70
								IRequest $request,
71
								ShareManager $shareManager,
72
								string $UserId,
73
								IUserManager $userManager,
74
								IGroupManager $groupManager,
75
								IRootFolder $rootFolder,
76
								IAppManager $appManager,
77
								IServerContainer $serverContainer) {
78
		parent::__construct($appName, $request);
79
80
		$this->shareManager = $shareManager;
81
		$this->userId = $UserId;
82
		$this->userManager = $userManager;
83
		$this->groupManager = $groupManager;
84
		$this->rootFolder = $rootFolder;
85
		$this->appManager = $appManager;
86
		$this->serverContainer = $serverContainer;
87
	}
88
89
	/**
90
	 * @suppress PhanUndeclaredClassMethod