Code Duplication    Length = 16-22 lines in 3 locations

core/Controller/LoginController.php 1 location

@@ 93-114 (lines=22) @@
90
	 * @param Defaults $defaults
91
	 * @param Throttler $throttler
92
	 */
93
	public function __construct($appName,
94
								IRequest $request,
95
								IUserManager $userManager,
96
								IConfig $config,
97
								ISession $session,
98
								IUserSession $userSession,
99
								IURLGenerator $urlGenerator,
100
								ILogger $logger,
101
								Manager $twoFactorManager,
102
								Defaults $defaults,
103
								Throttler $throttler) {
104
		parent::__construct($appName, $request);
105
		$this->userManager = $userManager;
106
		$this->config = $config;
107
		$this->session = $session;
108
		$this->userSession = $userSession;
109
		$this->urlGenerator = $urlGenerator;
110
		$this->logger = $logger;
111
		$this->twoFactorManager = $twoFactorManager;
112
		$this->defaults = $defaults;
113
		$this->throttler = $throttler;
114
	}
115
116
	/**
117
	 * @NoAdminRequired

apps/dav/lib/CalDAV/Schedule/IMipPlugin.php 1 location

@@ 111-126 (lines=16) @@
108
	 * @param IDBConnection $db
109
	 * @param string $userId
110
	 */
111
	public function __construct(IConfig $config, IMailer $mailer, ILogger $logger,
112
								ITimeFactory $timeFactory, L10NFactory $l10nFactory,
113
								IURLGenerator $urlGenerator, Defaults $defaults,
114
								ISecureRandom $random, IDBConnection $db, $userId) {
115
		parent::__construct('');
116
		$this->userId = $userId;
117
		$this->config = $config;
118
		$this->mailer = $mailer;
119
		$this->logger = $logger;
120
		$this->timeFactory = $timeFactory;
121
		$this->l10nFactory = $l10nFactory;
122
		$this->urlGenerator = $urlGenerator;
123
		$this->random = $random;
124
		$this->db = $db;
125
		$this->defaults = $defaults;
126
	}
127
128
	/**
129
	 * Event handler for the 'schedule' event.

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

@@ 79-100 (lines=22) @@
76
	/** @var ICloudIdManager */
77
	private $cloudIdManager;
78
79
	public function __construct($appName,
80
								IRequest $request,
81
								ILogger $logger,
82
								IUserManager $userManager,
83
								IGroupManager $groupManager,
84
								IURLGenerator $urlGenerator,
85
								ICloudFederationProviderManager $cloudFederationProviderManager,
86
								Config $config,
87
								ICloudFederationFactory $factory,
88
								ICloudIdManager $cloudIdManager
89
	) {
90
		parent::__construct($appName, $request);
91
92
		$this->logger = $logger;
93
		$this->userManager = $userManager;
94
		$this->groupManager = $groupManager;
95
		$this->urlGenerator = $urlGenerator;
96
		$this->cloudFederationProviderManager = $cloudFederationProviderManager;
97
		$this->config = $config;
98
		$this->factory = $factory;
99
		$this->cloudIdManager = $cloudIdManager;
100
	}
101
102
	/**
103
	 * add share