Code Duplication    Length = 6-6 lines in 2 locations

DependencyInjection/HttplugExtension.php 2 locations

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