Code Duplication    Length = 3-5 lines in 2 locations

plugins/unsplash-bg-updater/vendor/guzzlehttp/guzzle/src/UriTemplate.php 2 locations

@@ 131-135 (lines=5) @@
128
129
                    if (!$isNestedArray) {
130
                        $var = rawurlencode($var);
131
                        if ($parsed['operator'] === '+' ||
132
                            $parsed['operator'] === '#'
133
                        ) {
134
                            $var = $this->decodeReserved($var);
135
                        }
136
                    }
137
138
                    if ($value['modifier'] === '*') {
@@ 184-186 (lines=3) @@
181
                    $variable = substr($variable, 0, $value['position']);
182
                }
183
                $expanded = rawurlencode($variable);
184
                if ($parsed['operator'] === '+' || $parsed['operator'] === '#') {
185
                    $expanded = $this->decodeReserved($expanded);
186
                }
187
            }
188
189
            if ($actuallyUseQuery) {