Code Duplication    Length = 5-8 lines in 2 locations

includes/auth/AuthManager.php 2 locations

@@ 2026-2030 (lines=5) @@
2023
				$state = $this->request->getSession()->getSecret( 'AuthManager::accountCreationState' );
2024
				return is_array( $state ) ? $state['continueRequests'] : [];
2025
2026
			case self::ACTION_LINK:
2027
				$providers = array_filter( $this->getPrimaryAuthenticationProviders(), function ( $p ) {
2028
					return $p->accountCreationType() === PrimaryAuthenticationProvider::TYPE_LINK;
2029
				} );
2030
				break;
2031
2032
			case self::ACTION_UNLINK:
2033
				$providers = array_filter( $this->getPrimaryAuthenticationProviders(), function ( $p ) {
@@ 2032-2039 (lines=8) @@
2029
				} );
2030
				break;
2031
2032
			case self::ACTION_UNLINK:
2033
				$providers = array_filter( $this->getPrimaryAuthenticationProviders(), function ( $p ) {
2034
					return $p->accountCreationType() === PrimaryAuthenticationProvider::TYPE_LINK;
2035
				} );
2036
2037
				// To providers, unlink and remove are identical.
2038
				$providerAction = self::ACTION_REMOVE;
2039
				break;
2040
2041
			case self::ACTION_LINK_CONTINUE:
2042
				$state = $this->request->getSession()->getSecret( 'AuthManager::accountLinkState' );