Code Duplication    Length = 14-19 lines in 3 locations

apps/federation/lib/TrustedServers.php 1 location

@@ 87-105 (lines=19) @@
84
	 * @param EventDispatcherInterface $dispatcher
85
	 * @param ITimeFactory $timeFactory
86
	 */
87
	public function __construct(
88
		DbHandler $dbHandler,
89
		IClientService $httpClientService,
90
		ILogger $logger,
91
		IJobList $jobList,
92
		ISecureRandom $secureRandom,
93
		IConfig $config,
94
		EventDispatcherInterface $dispatcher,
95
		ITimeFactory $timeFactory
96
	) {
97
		$this->dbHandler = $dbHandler;
98
		$this->httpClientService = $httpClientService;
99
		$this->logger = $logger;
100
		$this->jobList = $jobList;
101
		$this->secureRandom = $secureRandom;
102
		$this->config = $config;
103
		$this->dispatcher = $dispatcher;
104
		$this->timeFactory = $timeFactory;
105
	}
106
107
	/**
108
	 * add server to the list of trusted servers

lib/private/Authentication/TwoFactorAuth/Manager.php 1 location

@@ 78-91 (lines=14) @@
75
	/** @var EventDispatcherInterface */
76
	private $dispatcher;
77
78
	public function __construct(ProviderLoader $providerLoader,
79
		IRegistry $providerRegistry, ISession $session, IConfig $config,
80
		IManager $activityManager, ILogger $logger, TokenProvider $tokenProvider,
81
		ITimeFactory $timeFactory, EventDispatcherInterface $eventDispatcher) {
82
		$this->providerLoader = $providerLoader;
83
		$this->session = $session;
84
		$this->config = $config;
85
		$this->activityManager = $activityManager;
86
		$this->logger = $logger;
87
		$this->tokenProvider = $tokenProvider;
88
		$this->timeFactory = $timeFactory;
89
		$this->dispatcher = $eventDispatcher;
90
		$this->providerRegistry = $providerRegistry;
91
	}
92
93
	/**
94
	 * Determine whether the user must provide a second factor challenge

lib/private/User/Session.php 1 location

@@ 126-142 (lines=17) @@
123
	 * @param ILockdownManager $lockdownManager
124
	 * @param ILogger $logger
125
	 */
126
	public function __construct(Manager $manager,
127
								ISession $session,
128
								ITimeFactory $timeFactory,
129
								$tokenProvider,
130
								IConfig $config,
131
								ISecureRandom $random,
132
								ILockdownManager $lockdownManager,
133
								ILogger $logger) {
134
		$this->manager = $manager;
135
		$this->session = $session;
136
		$this->timeFactory = $timeFactory;
137
		$this->tokenProvider = $tokenProvider;
138
		$this->config = $config;
139
		$this->random = $random;
140
		$this->lockdownManager = $lockdownManager;
141
		$this->logger = $logger;
142
	}
143
144
	/**
145
	 * @param IProvider $provider