Code Duplication    Length = 5-8 lines in 2 locations

includes/auth/AuthManager.php 2 locations

@@ 1971-1975 (lines=5) @@
1968
				$state = $this->request->getSession()->getSecret( 'AuthManager::accountCreationState' );
1969
				return is_array( $state ) ? $state['continueRequests'] : [];
1970
1971
			case self::ACTION_LINK:
1972
				$providers = array_filter( $this->getPrimaryAuthenticationProviders(), function ( $p ) {
1973
					return $p->accountCreationType() === PrimaryAuthenticationProvider::TYPE_LINK;
1974
				} );
1975
				break;
1976
1977
			case self::ACTION_UNLINK:
1978
				$providers = array_filter( $this->getPrimaryAuthenticationProviders(), function ( $p ) {
@@ 1977-1984 (lines=8) @@
1974
				} );
1975
				break;
1976
1977
			case self::ACTION_UNLINK:
1978
				$providers = array_filter( $this->getPrimaryAuthenticationProviders(), function ( $p ) {
1979
					return $p->accountCreationType() === PrimaryAuthenticationProvider::TYPE_LINK;
1980
				} );
1981
1982
				// To providers, unlink and remove are identical.
1983
				$providerAction = self::ACTION_REMOVE;
1984
				break;
1985
1986
			case self::ACTION_LINK_CONTINUE:
1987
				$state = $this->request->getSession()->getSecret( 'AuthManager::accountLinkState' );