Code Duplication    Length = 6-7 lines in 2 locations

src/Connectors/Http.php 2 locations

@@ 117-122 (lines=6) @@
114
        unset($config['type']);
115
116
        switch ($type) {
117
            case self::AUTH_BASIC:
118
                $clientConfig['auth'] = [
119
                    $config['username'],
120
                    $config['password'],
121
                ];
122
                break;
123
            case self::AUTH_DIGEST:
124
            case self::AUTH_NTLM:
125
                $clientConfig['auth'] = [
@@ 124-130 (lines=7) @@
121
                ];
122
                break;
123
            case self::AUTH_DIGEST:
124
            case self::AUTH_NTLM:
125
                $clientConfig['auth'] = [
126
                    $config['username'],
127
                    $config['password'],
128
                    $type
129
                ];
130
                break;
131
            case self::AUTH_OAUTH1:
132
                $stack = HandlerStack::create();
133
                $middleware = new Oauth1($config);