Code Duplication    Length = 9-9 lines in 2 locations

src/Guzzle/Http/Message/RequestFactory.php 2 locations

@@ 340-348 (lines=9) @@
337
        $request->getCurlOptions()->set(CURLOPT_PROXY, $value, $flags);
338
    }
339
340
    protected function visit_cert(RequestInterface $request, $value, $flags)
341
    {
342
        if (is_array($value)) {
343
            $request->getCurlOptions()->set(CURLOPT_SSLCERT, $value[0]);
344
            $request->getCurlOptions()->set(CURLOPT_SSLCERTPASSWD, $value[1]);
345
        } else {
346
            $request->getCurlOptions()->set(CURLOPT_SSLCERT, $value);
347
        }
348
    }
349
350
    protected function visit_ssl_key(RequestInterface $request, $value, $flags)
351
    {
@@ 350-358 (lines=9) @@
347
        }
348
    }
349
350
    protected function visit_ssl_key(RequestInterface $request, $value, $flags)
351
    {
352
        if (is_array($value)) {
353
            $request->getCurlOptions()->set(CURLOPT_SSLKEY, $value[0]);
354
            $request->getCurlOptions()->set(CURLOPT_SSLKEYPASSWD, $value[1]);
355
        } else {
356
            $request->getCurlOptions()->set(CURLOPT_SSLKEY, $value);
357
        }
358
    }
359
}
360