Code Duplication    Length = 6-6 lines in 2 locations

DependencyInjection/HttplugExtension.php 2 locations

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