Code Duplication    Length = 7-9 lines in 2 locations

core/Controller/TokenController.php 1 location

@@ 58-64 (lines=7) @@
55
	 * @param DefaultTokenProvider $tokenProvider
56
	 * @param ISecureRandom $secureRandom
57
	 */
58
	public function __construct($appName, IRequest $request, UserManager $userManager, IProvider $tokenProvider, TwoFactorAuthManager $twoFactorAuthManager, ISecureRandom $secureRandom) {
59
		parent::__construct($appName, $request);
60
		$this->userManager = $userManager;
61
		$this->tokenProvider = $tokenProvider;
62
		$this->secureRandom = $secureRandom;
63
		$this->twoFactorAuthManager = $twoFactorAuthManager;
64
	}
65
66
	/**
67
	 * Generate a new access token clients can authenticate with

settings/Controller/AuthSettingsController.php 1 location

@@ 63-71 (lines=9) @@
60
	 * @param ISecureRandom $random
61
	 * @param string $uid
62
	 */
63
	public function __construct($appName, IRequest $request, IProvider $tokenProvider, IUserManager $userManager,
64
		ISession $session, ISecureRandom $random, $uid) {
65
		parent::__construct($appName, $request);
66
		$this->tokenProvider = $tokenProvider;
67
		$this->userManager = $userManager;
68
		$this->uid = $uid;
69
		$this->session = $session;
70
		$this->random = $random;
71
	}
72
73
	/**
74
	 * @NoAdminRequired