Code Duplication    Length = 6-6 lines in 2 locations

DependencyInjection/HttplugExtension.php 2 locations

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