Code Duplication    Length = 3-3 lines in 2 locations

includes/auth/AuthManagerAuthPlugin.php 2 locations

@@ 50-52 (lines=3) @@
47
			'username' => $username,
48
			'password' => $password,
49
		];
50
		if ( $this->domain !== null && $this->domain !== '' ) {
51
			$data['domain'] = $this->domain;
52
		}
53
		$reqs = AuthManager::singleton()->getAuthenticationRequests( AuthManager::ACTION_LOGIN );
54
		$reqs = AuthenticationRequest::loadRequestsFromSubmission( $reqs, $data );
55
@@ 127-129 (lines=3) @@
124
			'username' => $user->getName(),
125
			'password' => $password,
126
		];
127
		if ( $this->domain !== null && $this->domain !== '' ) {
128
			$data['domain'] = $this->domain;
129
		}
130
		$reqs = AuthManager::singleton()->getAuthenticationRequests( AuthManager::ACTION_CHANGE );
131
		$reqs = AuthenticationRequest::loadRequestsFromSubmission( $reqs, $data );
132
		foreach ( $reqs as $req ) {