Code Duplication    Length = 6-6 lines in 2 locations

DependencyInjection/HttplugExtension.php 2 locations

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