Code Duplication    Length = 3-5 lines in 2 locations

src/vendor/guzzlehttp/guzzle/src/UriTemplate.php 2 locations

@@ 134-138 (lines=5) @@
131
132
                    if (!$isNestedArray) {
133
                        $var = rawurlencode($var);
134
                        if ($parsed['operator'] === '+' ||
135
                            $parsed['operator'] === '#'
136
                        ) {
137
                            $var = $this->decodeReserved($var);
138
                        }
139
                    }
140
141
                    if ($value['modifier'] === '*') {
@@ 188-190 (lines=3) @@
185
                    $variable = substr($variable, 0, $value['position']);
186
                }
187
                $expanded = rawurlencode($variable);
188
                if ($parsed['operator'] === '+' || $parsed['operator'] === '#') {
189
                    $expanded = $this->decodeReserved($expanded);
190
                }
191
            }
192
193
            if ($actuallyUseQuery) {