Code Duplication    Length = 8-8 lines in 2 locations

src/Request/AuthorizationHeader.php 1 location

@@ 57-64 (lines=8) @@
54
    /**
55
     * {@inheritDoc}
56
     */
57
    public function normalizeProtocolParameters(array $parameters)
58
    {
59
        array_walk($parameters, function (&$value, $key) {
60
            $value = rawurlencode($key) . '="' . rawurlencode($value) . '"';
61
        });
62
63
        return 'OAuth ' . implode(', ', $parameters);
64
    }
65
}
66

src/Request/RequestConfig.php 1 location

@@ 236-243 (lines=8) @@
233
     * @param  array  $parameters
234
     * @return string
235
     */
236
    public function normalizeProtocolParameters(array $parameters)
237
    {
238
        array_walk($parameters, function (&$value, $key) {
239
            $value = rawurlencode($key) . '="' . rawurlencode($value) . '"';
240
        });
241
242
        return 'OAuth ' . implode(', ', $parameters);
243
    }
244
}
245