Code Duplication    Length = 6-6 lines in 2 locations

DependencyInjection/HttplugExtension.php 2 locations

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