Code Duplication    Length = 6-6 lines in 2 locations

DependencyInjection/HttplugExtension.php 2 locations

@@ 236-241 (lines=6) @@
233
         * Decorate the client with clients from client-common
234
         */
235
236
        if ($arguments['flexible_client']) {
237
            $container->register($serviceId.'.flexible', FlexibleHttpClient::class)
238
                ->addArgument(new Reference($serviceId.'.flexible.inner'))
239
                ->setPublic(false)
240
                ->setDecoratedService($serviceId);
241
        }
242
243
        if ($arguments['http_methods_client']) {
244
            $container->register($serviceId.'.http_methods', HttpMethodsClient::class)
@@ 243-248 (lines=6) @@
240
                ->setDecoratedService($serviceId);
241
        }
242
243
        if ($arguments['http_methods_client']) {
244
            $container->register($serviceId.'.http_methods', HttpMethodsClient::class)
245
                ->setArguments([new Reference($serviceId.'.http_methods.inner'), new Reference('httplug.message_factory')])
246
                ->setPublic(false)
247
                ->setDecoratedService($serviceId);
248
        }
249
    }
250
}
251