Code Duplication    Length = 5-8 lines in 2 locations

includes/auth/AuthManager.php 2 locations

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