Code Duplication    Length = 6-6 lines in 2 locations

DependencyInjection/HttplugExtension.php 2 locations

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