Code Duplication    Length = 6-6 lines in 2 locations

DependencyInjection/HttplugExtension.php 2 locations

@@ 250-255 (lines=6) @@
247
         * Decorate the client with clients from client-common
248
         */
249
250
        if ($arguments['flexible_client']) {
251
            $container->register($serviceId.'.flexible', FlexibleHttpClient::class)
252
                ->addArgument(new Reference($serviceId.'.flexible.inner'))
253
                ->setPublic(false)
254
                ->setDecoratedService($serviceId);
255
        }
256
257
        if ($arguments['http_methods_client']) {
258
            $container->register($serviceId.'.http_methods', HttpMethodsClient::class)
@@ 257-262 (lines=6) @@
254
                ->setDecoratedService($serviceId);
255
        }
256
257
        if ($arguments['http_methods_client']) {
258
            $container->register($serviceId.'.http_methods', HttpMethodsClient::class)
259
                ->setArguments([new Reference($serviceId.'.http_methods.inner'), new Reference('httplug.message_factory')])
260
                ->setPublic(false)
261
                ->setDecoratedService($serviceId);
262
        }
263
    }
264
265
    /**