Code Duplication    Length = 9-11 lines in 2 locations

apps/dav/lib/Connector/Sabre/Auth.php 1 location

@@ 67-77 (lines=11) @@
64
	 * @param Manager $twoFactorManager
65
	 * @param string $principalPrefix
66
	 */
67
	public function __construct(ISession $session,
68
								Session $userSession,
69
								IRequest $request,
70
								Manager $twoFactorManager,
71
								$principalPrefix = 'principals/users/') {
72
		$this->session = $session;
73
		$this->userSession = $userSession;
74
		$this->twoFactorManager = $twoFactorManager;
75
		$this->request = $request;
76
		$this->principalPrefix = $principalPrefix;
77
	}
78
79
	/**
80
	 * Whether the user has initially authenticated via DAV

core/Middleware/TwoFactorMiddleware.php 1 location

@@ 65-73 (lines=9) @@
62
	 * @param ISession $session
63
	 * @param IURLGenerator $urlGenerator
64
	 */
65
	public function __construct(Manager $twoFactorManager, Session $userSession, ISession $session,
66
		IURLGenerator $urlGenerator, IControllerMethodReflector $reflector, IRequest $request) {
67
		$this->twoFactorManager = $twoFactorManager;
68
		$this->userSession = $userSession;
69
		$this->session = $session;
70
		$this->urlGenerator = $urlGenerator;
71
		$this->reflector = $reflector;
72
		$this->request = $request;
73
	}
74
75
	/**
76
	 * @param Controller $controller