public static function getAuthProtocol(array $credentials)
    {
        $instance       = new static;
        $credentialKeys = array_keys($credentials);

        if ($instance->isOauth1($credentialKeys)) {
            return 'oauth1';
        }

        if ($instance->isOauth2($credentialKeys)) {
            return 'oauth2';
        }

        return false;

    }
public static function getAuthProtocol(array $credentials)
    {
        $instance       = new static;
        $credentialKeys = array_keys($credentials);

        if ($instance->isOauth1($credentialKeys)) {
            return 'oauth1';
        }

        if ($instance->isOauth2($credentialKeys)) {
            return 'oauth2';
        }

        return false;

    }
public static function getAuthProtocol ( array $ credentials ) { $ instance = new static ; $ credentialKeys = array_keys ( $ credentials ) ; if ( $ instance -> isOauth1 ( $ credentialKeys ) ) { return 'oauth1' ; } if ( $ instance -> isOauth2 ( $ credentialKeys ) ) { return 'oauth2' ; } return false ; }
Checks the credentials and returns the name of the auth system used, if credentials are not founds, returns false.

@param  array $credentials
@return string|boolean
Checks the credentials and returns the name of the auth system used if credentials are not founds returns false .