Code Duplication    Length = 9-13 lines in 2 locations

core/Controller/AppPasswordController.php 1 location

@@ 52-64 (lines=13) @@
49
	/** @var IStore */
50
	private $credentialStore;
51
52
	public function __construct(string $appName,
53
								IRequest $request,
54
								ISession $session,
55
								ISecureRandom $random,
56
								IProvider $tokenProvider,
57
								IStore $credentialStore) {
58
		parent::__construct($appName, $request);
59
60
		$this->session = $session;
61
		$this->random = $random;
62
		$this->tokenProvider = $tokenProvider;
63
		$this->credentialStore = $credentialStore;
64
	}
65
66
	/**
67
	 * @NoAdminRequired

settings/Controller/AuthSettingsController.php 1 location

@@ 69-77 (lines=9) @@
66
	 * @param ISecureRandom $random
67
	 * @param string $userId
68
	 */
69
	public function __construct($appName, IRequest $request, IProvider $tokenProvider, IUserManager $userManager,
70
		ISession $session, ISecureRandom $random, $userId) {
71
		parent::__construct($appName, $request);
72
		$this->tokenProvider = $tokenProvider;
73
		$this->userManager = $userManager;
74
		$this->uid = $userId;
75
		$this->session = $session;
76
		$this->random = $random;
77
	}
78
79
	/**
80
	 * @NoAdminRequired